/* Temel yapı - Yeni tasarım */
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #18a85c;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --light: #f8f9fa;
    --dark: #212529;
    --white: #ffffff;
    --body-bg: #f5f5f5;
}

/* Dark tema için renkler */
[data-theme="dark"] {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #20c997;
    --danger: #dc3545;
    --warning: #ffd60a;
    --info: #0dcaf0;
    --light: #f8f9fa;
    --dark: #212529;
    --white: #ffffff;
    --body-bg: #121212;
}

/* Temel stil ayarları */
body {
    background-color: var(--body-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding-top: 70px; /* Navbar yüksekliği için biraz daha fazla alan */
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
}

.navbar-dark {
    background-color: var(--dark) !important;
}

[data-theme="dark"] .navbar {
    background-color: #1a1a1a !important;
}

.navbar-brand {
    font-weight: bold;
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0.8rem !important;
    transition: color 0.3s;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.8rem;
    right: 0.8rem;
    height: 3px;
    background-color: var(--success);
    border-radius: 3px 3px 0 0;
}

/* Kartlar */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .card {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

[data-theme="dark"] .card-header:not(.bg-primary):not(.bg-success):not(.bg-danger):not(.bg-info) {
    background-color: #333;
    color: #fff;
}

/* Özel kart içerikleri için padding */
.news-content {
    padding: 0 1.25rem;
} 
.app-info {
    padding: 0.75rem 1.25rem;
}
.video-content-wrapper{
    padding: 0px;
}

.news-content img,
.video-content-wrapper img,
.app-info img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Haber başlık bölümü için stil */
.news-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

[data-theme="dark"] .news-feed-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

.news-feed-header h4 {
    margin-bottom: 0;
    font-weight: 600;
}

.view-all-link {
    color: var(--success);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: var(--primary);
}

/* Uygulama listesi için stil */
#uygulamalar .app-info a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--dark);
    text-decoration: none;
    transition: transform 0.2s ease;
}

#uygulamalar .app-info a:hover {
    transform: translateX(5px);
}

#uygulamalar .app-info i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--success);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(24, 168, 92, 0.1);
    border-radius: 50%;
}

#uygulamalar .app-info .app-name {
    font-weight: 500;
}

[data-theme="dark"] #uygulamalar .app-info a {
    color: var(--light);
}

/* Tablolar */
.table {
    margin-bottom: 0;
}

[data-theme="dark"] .table {
    color: #e0e0e0;
}

[data-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

/* Butonlar */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sayfayı yükleme animasyonu */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

[data-theme="dark"] .page-loader {
    background-color: rgba(18, 18, 18, 0.95);
}

.loader-inner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--success);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    background-color: var(--dark);
}

/* Medya sorguları */
@media (max-width: 991.98px) {
    body {
        padding-top: 62px;
    }
    
    .navbar-collapse {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .nav-link.active:after {
        left: 0;
        right: 0;
    }
}

@media (min-width: 992px) {
    body {
        padding-top: 70px;
    }
    
    .navbar .nav-item {
        margin: 0 0.15rem;
    }
}

/* Tema geçişleri */
.theme-transitions-enabled * {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Beğeni butonları için özel stil */
.vote-btn {
    min-width: 80px;
}

/* Form switch düğmesi */
.form-check-input {
    cursor: pointer;
}
