/* YKS Çalışma Takip Sistemi - Modern Tasarım */

:root {
    /* Ana Palet - Odak & Motivasyon */
    --bg-primary: #F4F7FB;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    
    /* Tema Renkleri */
    --primary-color: #2563EB;
    --secondary-color: #22C55E;
    --cta-color: #F59E0B;
    --danger-color: #EF4444;
    
    /* Başarı Paleti */
    --success-color: #16A34A;
    --success-gold: #FACC15;
    --success-bg: #ECFDF5;
    
    /* Risk Renkleri */
    --risk-low: #22C55E;
    --risk-medium: #F59E0B;
    --risk-high: #EF4444;
    
    /* Grafik Renkleri */
    --chart-blue: #2563EB;
    --chart-green: #22C55E;
    --chart-orange: #F59E0B;
    --chart-purple: #8B5CF6;
    --chart-cyan: #06B6D4;
    
    /* Yardımcı Renkler */
    --light-color: #F4F7FB;
    --border-color: #E5E7EB;
    --card-bg: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 0;
}

/* ============================================
   HEADER - Premium Navigation
   ============================================ */

/* Navbar Container */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color, #E2E8F0);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    height: 72px;
    margin-bottom: 0;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.75);
    border-bottom-color: #334155;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    gap: 1.5rem;
    min-width: 0;
}

.navbar-container > * {
    min-width: 0;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color, #2563EB);
    font-size: 1.25rem;
    font-weight: 700;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.navbar-logo:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.navbar-logo:focus-visible {
    outline: 2px solid var(--primary-color, #2563EB);
    outline-offset: 4px;
    border-radius: 8px;
}

.navbar-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color, #2563EB) 0%, #1D4ED8 100%);
    border-radius: 12px;
    font-size: 1.375rem;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.navbar-logo-text {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Navbar Menu */
.navbar-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 800px;
    min-width: 0;
}

.navbar-menu-pills {
    display: flex;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    flex-wrap: wrap;
    justify-content: center;
}

[data-theme="dark"] .navbar-menu-pills {
    background: transparent;
}

.navbar-menu-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    text-decoration: none;
    color: var(--text-primary, #111827);
    background: transparent;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.22s ease;
    position: relative;
}

.navbar-menu-item:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color, #2563EB);
}

.navbar-menu-item:focus-visible {
    outline: 2px solid var(--primary-color, #2563EB);
    outline-offset: 2px;
}

.navbar-menu-item--active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color, #2563EB);
    font-weight: 600;
}

.navbar-menu-item--active:hover {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-color, #2563EB);
}

.navbar-menu-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.navbar-menu-label {
    line-height: 1.4;
}

.navbar-menu-divider {
    display: none;
    height: 1px;
    background: var(--border-color, #E2E8F0);
    margin: 0.5rem 0;
    width: 100%;
}

.navbar-menu-item--mobile {
    display: none;
}

.navbar-logout-form--mobile {
    display: none;
}

.navbar-action-btn--desktop {
    display: inline-flex;
}

.navbar-logout-form--desktop {
    display: inline;
}

/* Mobilde actions menü içinde, desktop butonları gizle */
@media (max-width: 768px) {
    .navbar-menu-divider {
        display: block;
        margin: 0.5rem 1.25rem;
        height: 1px;
        background: var(--border-color, #E2E8F0);
    }

    .navbar-menu-item--mobile {
        display: flex;
        color: var(--text-primary, #111827);
    }

    .navbar-menu-item--mobile:hover {
        background: var(--bg-primary, #F8FAFC);
        border-left-color: var(--primary-color, #2563EB);
        color: var(--primary-color, #2563EB);
    }

    .navbar-menu-item--istiklal {
        color: #DC2626;
        font-weight: 600;
    }

    .navbar-menu-item--istiklal:hover {
        background: rgba(220, 38, 38, 0.1);
        border-left-color: #DC2626;
        color: #DC2626;
    }

    .navbar-menu-item--logout {
        color: var(--danger-color, #EF4444);
    }

    .navbar-menu-item--logout:hover {
        background: rgba(239, 68, 68, 0.1);
        border-left-color: var(--danger-color, #EF4444);
        color: var(--danger-color, #EF4444);
    }

    [data-theme="dark"] .navbar-menu-item--mobile:hover {
        background: rgba(30, 41, 59, 0.5);
    }

    [data-theme="dark"] .navbar-menu-item--istiklal:hover {
        background: rgba(220, 38, 38, 0.2);
    }

    [data-theme="dark"] .navbar-menu-item--logout:hover {
        background: rgba(239, 68, 68, 0.2);
    }

    .navbar-logout-form--mobile {
        display: block;
        width: 100%;
        margin: 0;
    }

    .navbar-logout-form--mobile button {
        width: 100%;
        text-align: left;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .navbar-action-btn--desktop {
        display: none !important;
    }

    .navbar-logout-form--desktop {
        display: none !important;
    }
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.navbar-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--text-primary, #111827);
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
    height: auto;
}

.navbar-action-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color, #2563EB);
}

.navbar-action-btn:focus-visible {
    outline: 2px solid var(--primary-color, #2563EB);
    outline-offset: 2px;
}

.navbar-action-btn--active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color, #2563EB);
    font-weight: 600;
}

.navbar-action-btn--active:hover {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-color, #2563EB);
}

.navbar-action-btn--istiklal {
    color: #DC2626;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
}

.navbar-action-btn--istiklal:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
}

.navbar-action-btn--icon {
    padding: 0.75rem 1rem;
    width: auto;
    height: auto;
    min-width: auto;
    justify-content: center;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.navbar-action-btn--logout {
    color: var(--text-primary, #111827);
    padding: 0.75rem 1.25rem;
    font-weight: 500;
}

.navbar-action-btn--logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color, #EF4444);
}

.navbar-action-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-action-label {
    line-height: 1.4;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.9375rem;
    font-weight: 500;
}

.navbar-logout-form {
    display: inline;
    margin: 0;
    flex-shrink: 0;
}

.navbar-logout-form button {
    margin: 0;
}

/* Duplicate removed - using definition above */

/* Mobile Menu Toggle Button */
.navbar-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary, #111827);
    font-size: 1.5rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.navbar-menu-toggle:hover {
    background: var(--bg-primary, #F8FAFC);
}

.navbar-menu-toggle:focus-visible {
    outline: 2px solid var(--primary-color, #2563EB);
    outline-offset: 2px;
}

.navbar-menu-toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    line-height: 1;
}

.navbar-menu-toggle[aria-expanded="true"] .navbar-menu-toggle-icon {
    transform: rotate(90deg);
}

/* Responsive Navbar - Progressive Menu Hiding */
@media (max-width: 1200px) {
    .navbar-action-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .navbar-action-label {
        font-size: 0.875rem;
    }
    
    .navbar-actions {
        gap: 0.625rem;
    }
}

@media (max-width: 1024px) {
    .navbar-menu-label {
        font-size: 0.875rem;
    }

    .navbar-action-label {
        font-size: 0.875rem;
    }
    
    .navbar-actions {
        gap: 0.625rem;
    }
    
    .navbar-action-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    /* Priority 3: Sınavlar, Konular gizlenir */
    .navbar-menu-item--priority3 {
        display: none;
    }
}

@media (max-width: 900px) {
    /* Priority 3: İstatistikler, Sınavlar, Konular gizlenir */
    .navbar-menu-item--priority3 {
        display: none;
    }
    
    /* Actions butonlarında label'ları gizle, sadece icon göster */
    .navbar-action-label {
        display: none;
    }
    
    .navbar-action-btn {
        padding: 0.625rem;
        width: auto;
        height: auto;
        min-width: auto;
        justify-content: center;
    }
    
    .navbar-action-btn--istiklal {
        width: auto;
        min-width: auto;
        padding: 0.625rem 0.75rem;
    }
    
    .navbar-action-btn--istiklal .navbar-action-label {
        display: inline;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    /* Priority 1 ve 2: Plan, Soru Çözümü, Ayarlar gizlenir */
    .navbar-menu-item--priority1,
    .navbar-menu-item--priority2 {
        display: none;
    }
    
    /* Hamburger menü göster */
    .navbar-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        min-height: 64px;
    }

    .navbar-container {
        flex-wrap: nowrap;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        position: relative;
    }

    .navbar-logo {
        font-size: 1rem;
        flex-shrink: 0;
        min-width: 0;
    }

    .navbar-logo-text {
        display: none;
    }

    .navbar-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .navbar-menu-toggle {
        display: flex;
        order: 2;
        flex-shrink: 0;
    }

    /* Her zaman görünür olanlar header'da kalır */
    .navbar-menu {
        order: 1;
        flex: 1;
        display: flex;
        justify-content: flex-start;
        min-width: 0;
        max-width: none;
        overflow: hidden;
    }

    .navbar-menu-pills {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0;
        background: transparent;
        border-radius: 0;
        overflow: visible;
        width: 100%;
        max-width: 100%;
        height: auto;
        transform: none;
        transition: none;
        box-shadow: none;
        border: none;
        flex-wrap: nowrap;
    }

    [data-theme="dark"] .navbar-menu-pills {
        background: transparent;
    }

    /* Sadece her zaman görünür olanlar header'da */
    .navbar-menu-item--always-visible {
        display: inline-flex !important;
        flex-shrink: 1;
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        border-radius: 999px;
        border-left: none;
        margin: 0;
        white-space: nowrap;
        min-width: 0;
    }
    
    .navbar-menu-item--always-visible .navbar-menu-label {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Diğerleri gizli (hamburger menüde gösterilecek) */
    .navbar-menu-item--priority1,
    .navbar-menu-item--priority2,
    .navbar-menu-item--priority3 {
        display: none;
    }

    .navbar-menu-divider {
        display: none;
    }

    /* Hamburger menü (overlay) - Sağ taraftan slide-in */
    .navbar-menu.is-open {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        height: calc(100vh - 64px);
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999;
        display: flex;
        margin: 0;
        padding: 0;
        justify-content: flex-end;
    }

    .navbar-menu.is-open .navbar-menu-pills {
        width: 85%;
        max-width: 320px;
        height: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 0;
        background: var(--card-bg, #FFFFFF);
        border: none;
        border-radius: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-overflow-scrolling: touch;
    }

    .navbar-menu.is-open .navbar-menu-pills {
        transform: translateX(0);
    }

    .navbar-menu.is-open .navbar-menu-item--always-visible,
    .navbar-menu.is-open .navbar-menu-item--priority1,
    .navbar-menu.is-open .navbar-menu-item--priority2,
    .navbar-menu.is-open .navbar-menu-item--priority3 {
        display: flex !important;
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
        border-radius: 0;
        width: 100%;
        border-left: 4px solid transparent;
        white-space: normal;
    }

    .navbar-menu.is-open .navbar-menu-item {
        border-left: 4px solid transparent;
    }

    .navbar-menu.is-open .navbar-menu-divider {
        display: block;
    }

    [data-theme="dark"] .navbar-menu.is-open {
        background: rgba(0, 0, 0, 0.7);
    }

    [data-theme="dark"] .navbar-menu.is-open .navbar-menu-pills {
        background: var(--card-bg, #1E293B);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    }

    .navbar-menu-item {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
        justify-content: flex-start;
        border-radius: 0;
        width: 100%;
        margin: 0;
        border-left: 4px solid transparent;
        transition: all 0.2s ease;
    }

    .navbar-menu-item:hover {
        background: var(--bg-primary, #F8FAFC);
        border-left-color: var(--primary-color, #2563EB);
    }

    .navbar-menu-item--active {
        background: rgba(37, 99, 235, 0.1);
        border-left-color: var(--primary-color, #2563EB);
        color: var(--primary-color, #2563EB);
    }

    [data-theme="dark"] .navbar-menu-item:hover {
        background: rgba(30, 41, 59, 0.5);
    }

    [data-theme="dark"] .navbar-menu-item--active {
        background: rgba(37, 99, 235, 0.2);
    }

    .navbar-menu-icon {
        font-size: 1.25rem;
        width: 24px;
        text-align: center;
        flex-shrink: 0;
    }

    .navbar-menu-label {
        margin-left: 0.75rem;
        font-weight: 500;
    }

    .navbar-actions {
        gap: 0.5rem;
        order: 1;
        flex-shrink: 0;
    }

    .navbar-action-btn {
        padding: 0.625rem 0.875rem;
        width: auto;
        height: auto;
        min-width: 36px;
        justify-content: center;
        font-size: 0.875rem;
    }

    .navbar-action-btn--icon {
        width: auto;
        height: auto;
        min-width: 36px;
        padding: 0.625rem 0.875rem;
        font-size: 1.125rem;
    }

    .navbar-action-icon {
        font-size: 1rem;
    }

    .navbar-menu-divider {
        display: block;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0.5rem 0.5rem;
        gap: 0.375rem;
    }

    .navbar-logo-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .navbar-menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .navbar-menu-pills {
        width: 80%;
        max-width: 280px;
        padding: 0.75rem 0;
    }

    .navbar-menu-item {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .navbar-menu-icon {
        font-size: 1.125rem;
        width: 22px;
    }

    .navbar-menu-label {
        margin-left: 0.625rem;
    }

    .navbar-menu-divider {
        margin: 0.5rem 1rem;
    }
}

    .navbar-actions {
        gap: 0;
    }

    .navbar-action-btn {
        width: 32px;
        height: 32px;
        padding: 0.375rem;
        font-size: 0.8125rem;
    }

    .navbar-action-btn--icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .navbar-action-icon {
        font-size: 0.9375rem;
    }
}

/* ============================================
   ALERTS - Flash Messages
   ============================================ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.alert-success {
    background: #ECFDF5;
    border-left: 4px solid #22C55E;
    color: #166534;
}

.alert-icon {
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-text {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.5;
    font-weight: 500;
}

.alert-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: -0.125rem;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.alert-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

[data-theme="dark"] .alert-error {
    background: #2D1B1B;
    border-left-color: #EF4444;
    color: #FCA5A5;
}

[data-theme="dark"] .alert-success {
    background: #064E3B;
    border-left-color: #22C55E;
    color: #86EFAC;
}

[data-theme="dark"] .alert-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Alerts */
@media (max-width: 768px) {
    .alert {
        padding: 0.875rem 1rem;
        margin-bottom: 1rem;
    }

    .alert-text {
        font-size: 0.875rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .alert {
        animation: none;
    }

    .navbar-logo:hover {
        transform: none;
    }
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    text-decoration: none;
}

.btn-link:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #16A34A;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-cta {
    background-color: var(--cta-color);
    color: white;
}

.btn-cta:hover {
    background-color: #D97706;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #DC2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #FEF2F2;
    color: #991B1B;
    border-left: 4px solid var(--danger-color);
    border-radius: 12px;
}

.alert-success {
    background-color: var(--success-bg);
    color: #166534;
    border-left: 4px solid var(--success-color);
    border-radius: 12px;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background-color: var(--card-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1D4ED8 100%);
    color: white;
}

table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 1rem;
    text-align: left;
}

table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

table tbody tr:hover {
    background-color: var(--bg-primary);
}

table tbody tr:last-child {
    border-bottom: none;
}

/* Admin Table Styles (for questions page) */
.admin-table-container {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1D4ED8 100%);
    color: white;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background-color 0.15s ease;
}

.admin-table tbody tr:hover {
    background-color: var(--bg-primary);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.text-center {
    text-align: center;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 12px;
    background-color: var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin: 0.75rem 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color) 0%, #22C55E 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.3);
}

/* Landing Page */
.landing-page {
    min-height: 100vh;
    padding: 0;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1D4ED8 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out;
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-primary.btn-large {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary.btn-large:hover {
    background-color: var(--bg-primary);
    color: #1D4ED8;
}

.btn-secondary.btn-large {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary.btn-large:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.features {
    padding: 5rem 2rem;
    background: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Pages */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.auth-card h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Dashboard */
.dashboard h1 {
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.quote {
    font-style: italic;
    margin: 1rem 0;
    color: var(--text-muted);
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Topics Page */
.topics-page h1 {
    margin-bottom: 1.5rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

.filter-group .form-control {
    display: inline-block;
    width: auto;
    min-width: 150px;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    background: var(--card-bg);
    transition: all 0.2s ease;
    font-weight: 500;
}

.filter-group .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.subject-section {
    margin-bottom: 3rem;
}

.subject-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.topic-card {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.topic-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.topic-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.topic-form {
    margin-top: 1rem;
}

.stats-summary {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.stats-summary p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.stats-summary strong {
    color: var(--primary-color);
}

#loading-indicator {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

#loading-indicator::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Başarı Durumları */
.topic-card.completed {
    border-left: 4px solid var(--success-color);
    background: linear-gradient(to right, var(--success-bg) 0%, var(--card-bg) 4px);
}

.topic-card.completed h4 {
    color: var(--success-color);
}

.topic-card.in-progress {
    border-left: 4px solid var(--cta-color);
    background: linear-gradient(to right, #FFFBEB 0%, var(--card-bg) 4px);
}

.topic-card.in-progress h4 {
    color: var(--cta-color);
}

.topic-card.not-started {
    border-left: 4px solid var(--border-color);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.completed {
    background-color: var(--success-bg);
    color: var(--success-color);
    border: 1.5px solid var(--success-color);
}

.status-badge.in-progress {
    background-color: #FFFBEB;
    color: #92400E;
    border: 1.5px solid var(--cta-color);
}

.status-badge.not-started {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border: 1.5px solid var(--border-color);
}

/* Risk Badge */
.risk-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.risk-badge.low {
    background: #ECFDF5;
    color: #166534;
    border: 1.5px solid var(--risk-low);
}

.risk-badge.medium {
    background: #FFFBEB;
    color: #92400E;
    border: 1.5px solid var(--risk-medium);
}

.risk-badge.high {
    background: #FEF2F2;
    color: #991B1B;
    border: 1.5px solid var(--risk-high);
}

/* Başarı Mesajları */
.success-highlight {
    background: var(--success-bg);
    border-left: 4px solid var(--success-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.success-highlight strong {
    color: var(--success-color);
}

/* CTA Butonları */
.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #16A34A;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background-color: var(--cta-color);
    color: white;
}

.btn-warning:hover {
    background-color: #D97706;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

#loading-indicator p {
    margin: 0;
}

/* Exams Page */
.exams-page h1 {
    margin-bottom: 1.5rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.exams-table {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Exam Create */
.exam-create-page h1 {
    margin-bottom: 1.5rem;
}

.exam-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.subject-input-group {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.subject-input-group h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.net-display {
    background-color: var(--bg-primary) !important;
    font-weight: bold;
    color: var(--primary-color);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1.5px solid var(--primary-color);
}

/* Exam Detail */
.exam-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

.exam-detail-page h1 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.exam-info {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.exam-info p {
    margin: 0.75rem 0;
    font-size: 1rem;
}

.exam-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.exam-detail-table thead {
    background: var(--bg-primary, #F8FAFC);
}

.exam-detail-table th,
.exam-detail-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.exam-detail-table th {
    font-weight: 600;
    color: var(--text-primary, #111827);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exam-detail-table td {
    font-size: 0.9375rem;
    color: var(--text-primary, #111827);
}

.exam-detail-table tbody tr:last-child td {
    border-bottom: none;
}

.exam-detail-table tbody tr:hover {
    background: var(--bg-primary, #F8FAFC);
}

.exam-actions {
    margin-top: 1.5rem;
}

/* Exam Detail Responsive */
@media (max-width: 768px) {
    .exam-detail-page {
        padding: 1.5rem 1rem;
    }

    .exam-detail-page h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .exam-info {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .exam-info p {
        font-size: 0.9375rem;
        margin: 0.5rem 0;
    }

    .exam-detail-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .exam-detail-table thead,
    .exam-detail-table tbody,
    .exam-detail-table tr,
    .exam-detail-table th,
    .exam-detail-table td {
        display: block;
    }

    .exam-detail-table thead {
        display: none;
    }

    .exam-detail-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        background: var(--card-bg);
    }

    .exam-detail-table td {
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
        text-align: right;
        position: relative;
        padding-left: 50%;
    }

    .exam-detail-table td:last-child {
        border-bottom: none;
    }

    .exam-detail-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        text-align: left;
        color: var(--text-secondary, #6B7280);
        font-size: 0.875rem;
    }

    .exam-actions {
        margin-top: 1.25rem;
    }

    .exam-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .exam-detail-page {
        padding: 1rem 0.75rem;
    }

    .exam-detail-page h1 {
        font-size: 1.5rem;
    }

    .exam-info {
        padding: 1rem;
    }

    .exam-info p {
        font-size: 0.875rem;
    }

    .exam-detail-table tr {
        padding: 0.75rem;
    }

    .exam-detail-table td {
        font-size: 0.875rem;
        padding-left: 45%;
    }

    .exam-detail-table td::before {
        font-size: 0.8125rem;
    }
}

/* Analytics */
.analytics-page h1 {
    margin-bottom: 1.5rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* Settings */
.settings-page h1 {
    margin-bottom: 1.5rem;
}

.settings-sections {
    display: grid;
    gap: 1.5rem;
}

/* ============================================
   GAME PAGE - Premium Memory Matching Game
   ============================================ */

:root {
    --game-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

/* Header */
.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary, #111827);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.game-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary, #6B7280);
    font-weight: 400;
}

/* Stats Bar */
.game-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.game-stat-card {
    background: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: var(--game-transition);
}

.game-stat-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.game-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary, #6B7280);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color, #2563EB);
    line-height: 1.2;
}

/* Controls */
.game-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.game-select {
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 10px;
    background: var(--card-bg, #FFFFFF);
    color: var(--text-primary, #111827);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--game-transition);
    font-family: inherit;
}

.game-select:hover {
    border-color: var(--primary-color, #2563EB);
}

.game-select:focus-visible {
    outline: 2px solid var(--primary-color, #2563EB);
    outline-offset: 2px;
}

.game-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--game-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
}

.game-btn--primary {
    background: var(--primary-color, #2563EB);
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.game-btn--primary:hover:not(:disabled) {
    background: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.game-btn--secondary {
    background: var(--card-bg, #FFFFFF);
    color: var(--text-primary, #111827);
    border: 1px solid var(--border-color, #E2E8F0);
}

.game-btn--secondary:hover:not(:disabled) {
    background: var(--bg-primary, #F8FAFC);
    border-color: var(--primary-color, #2563EB);
}

.game-btn:disabled,
.game-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-btn:focus-visible {
    outline: 2px solid var(--primary-color, #2563EB);
    outline-offset: 2px;
}

/* Game Board */
.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 1rem;
}

/* Zorluk seviyelerine göre grid genişliği */
.game-board[data-difficulty="6x4"] {
    max-width: 800px;
    grid-template-columns: repeat(6, 1fr);
}

.game-board[data-difficulty="6x6"] {
    max-width: 900px;
    grid-template-columns: repeat(6, 1fr);
}

.game-card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-color, #2563EB) 0%, #1D4ED8 100%);
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    transition: var(--game-transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    font-weight: 600;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover:not(.matched):not(.flipped)::before {
    opacity: 1;
}

.game-card:hover:not(.matched):not(.flipped) {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.game-card:focus-visible {
    outline: 3px solid var(--primary-color, #2563EB);
    outline-offset: 2px;
}

.game-card.flipped {
    background: var(--card-bg, #FFFFFF);
    color: var(--primary-color, #2563EB);
    border: 2px solid var(--primary-color, #2563EB);
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.game-card.matched {
    background: linear-gradient(135deg, var(--success-color, #22C55E) 0%, #16A34A 100%);
    color: white;
    cursor: default;
    border-color: var(--success-color, #22C55E);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.game-card.matched:focus-visible {
    outline-color: var(--success-color, #22C55E);
}

.game-card.pulse {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.game-card.hint-reveal {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--primary-color, #2563EB);
    animation: hintFlash 0.8s ease;
}

@keyframes hintFlash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Footer */
.game-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, #E2E8F0);
}

.game-footer-text {
    font-size: 0.875rem;
    color: var(--text-secondary, #6B7280);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.game-footer-separator {
    opacity: 0.5;
}

/* Modal */
.game-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.game-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.game-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.game-modal-content {
    position: relative;
    background: var(--card-bg, #FFFFFF);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.game-modal.active .game-modal-content {
    transform: scale(1);
}

.game-modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
}

.game-modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary, #111827);
    margin: 0;
}

.game-modal-body {
    padding: 1.5rem 2rem;
}

.game-modal-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.game-modal-stat {
    text-align: center;
}

.game-modal-stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary, #6B7280);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.game-modal-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color, #2563EB);
}

.game-modal-best {
    text-align: center;
    margin-top: 1rem;
}

.game-modal-best-new {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--success-color, #22C55E) 0%, #16A34A 100%);
    color: white;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9375rem;
}

.game-modal-best-text {
    font-size: 0.875rem;
    color: var(--text-secondary, #6B7280);
}

.game-modal-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.game-modal-footer .game-btn {
    flex: 1;
    max-width: 160px;
}

/* Responsive */
@media (max-width: 768px) {
    .game-page {
        padding: 1.5rem 1rem;
    }

    .game-header {
        margin-bottom: 1.5rem;
    }

    .game-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .game-subtitle {
        font-size: 0.9375rem;
    }

    .game-stats-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .game-stat-card {
        padding: 0.875rem 0.75rem;
    }

    .game-stat-label {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }

    .game-stat-value {
        font-size: 1.375rem;
    }

    .game-controls {
        flex-direction: column;
        width: 100%;
        gap: 0.625rem;
        margin-bottom: 1.5rem;
    }

    .game-select,
    .game-btn {
        width: 100%;
        max-width: 100%;
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
        min-height: 40px;
    }

    .game-board {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.625rem;
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .game-card {
        font-size: 1.5rem;
    }

    .game-footer {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .game-footer-text {
        font-size: 0.8125rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .game-footer-separator {
        display: none;
    }

    .game-modal-content {
        width: 95%;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .game-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .game-modal-title {
        font-size: 1.5rem;
    }

    .game-modal-body {
        padding: 1rem 1.5rem;
    }

    .game-modal-stats {
        gap: 1.5rem;
        flex-direction: column;
    }

    .game-modal-stat {
        text-align: center;
    }

    .game-modal-stat-label {
        font-size: 0.875rem;
    }

    .game-modal-stat-value {
        font-size: 1.25rem;
    }

    .game-modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.625rem;
    }

    .game-modal-footer .game-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .game-board[data-difficulty="6x4"],
    .game-board[data-difficulty="6x6"] {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .game-page {
        padding: 1rem 0.75rem;
    }

    .game-header {
        margin-bottom: 1rem;
    }

    .game-title {
        font-size: 1.5rem;
    }

    .game-subtitle {
        font-size: 0.875rem;
    }

    .game-stats-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .game-stat-card {
        padding: 0.75rem 0.5rem;
    }

    .game-stat-label {
        font-size: 0.6875rem;
        margin-bottom: 0.25rem;
    }

    .game-stat-value {
        font-size: 1.125rem;
    }

    .game-controls {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .game-select,
    .game-btn {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
        min-height: 38px;
    }

    .game-board {
        gap: 0.5rem;
        padding: 0.5rem;
        margin-bottom: 1rem;
    }

    .game-card {
        font-size: 1.25rem;
        border-radius: 10px;
    }

    .game-footer {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }

    .game-footer-text {
        font-size: 0.75rem;
    }

    .game-modal-content {
        width: calc(100% - 1rem);
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .game-modal-header {
        padding: 1.25rem 1rem 0.75rem;
    }

    .game-modal-title {
        font-size: 1.25rem;
    }

    .game-modal-body {
        padding: 0.75rem 1rem;
    }

    .game-modal-stat-label {
        font-size: 0.8125rem;
    }

    .game-modal-stat-value {
        font-size: 1.125rem;
    }

    .game-modal-footer {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 420px) {
    .game-board {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        gap: 0.375rem;
        padding: 0.5rem;
    }

    .game-card {
        font-size: 1.125rem;
        border-radius: 8px;
    }

    .game-stats-bar {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .game-stat-card {
        padding: 0.625rem;
    }

    .game-stat-value {
        font-size: 1rem;
    }
}

/* Dark Mode */
[data-theme="dark"] .game-stat-card {
    background: var(--card-bg, #1E293B);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] .game-select {
    background: var(--card-bg, #1E293B);
    border-color: var(--border-color, #334155);
    color: var(--text-primary, #E5E7EB);
}

[data-theme="dark"] .game-btn--secondary {
    background: var(--card-bg, #1E293B);
    border-color: var(--border-color, #334155);
    color: var(--text-primary, #E5E7EB);
}

[data-theme="dark"] .game-card.flipped {
    background: var(--card-bg, #1E293B);
    color: var(--primary-color, #3B82F6);
}

[data-theme="dark"] .game-modal-content {
    background: var(--card-bg, #1E293B);
    color: var(--text-primary, #E5E7EB);
}

[data-theme="dark"] .game-modal-header {
    border-bottom-color: var(--border-color, #334155);
}

[data-theme="dark"] .game-footer {
    border-top-color: var(--border-color, #334155);
}

/* Dark Mode - Game Page Elements */
[data-theme="dark"] .game-title {
    color: var(--text-primary, #E5E7EB);
}

[data-theme="dark"] .game-subtitle {
    color: var(--text-secondary, #94A3B8);
}

[data-theme="dark"] .game-footer-text {
    color: var(--text-secondary, #94A3B8);
}

/* Dark Mode - Game Card Hint Reveal */
[data-theme="dark"] .game-card.hint-reveal {
    background: rgba(59, 130, 246, 0.3);
    border-color: var(--primary-color, #3B82F6);
}

/* Dark Mode - Game Modal Overlay */
[data-theme="dark"] .game-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* Dark Mode - Game Modal Title */
[data-theme="dark"] .game-modal-title {
    color: var(--text-primary, #E5E7EB);
}

/* Dark Mode - Game Modal Stats */
[data-theme="dark"] .game-modal-stat-label {
    color: var(--text-secondary, #94A3B8);
}

[data-theme="dark"] .game-modal-stat-value {
    color: var(--primary-color, #3B82F6);
}

[data-theme="dark"] .game-modal-best-text {
    color: var(--text-secondary, #94A3B8);
}

/* Dark Mode - Game Button Secondary Hover */
[data-theme="dark"] .game-btn--secondary:hover:not(:disabled) {
    background: var(--bg-primary, #0F172A);
    border-color: var(--primary-color, #3B82F6);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .game-card,
    .game-stat-card,
    .game-btn,
    .game-select {
        transition: none;
    }

    .game-card:hover:not(.matched):not(.flipped) {
        transform: none;
    }

    .game-card.pulse {
        animation: none;
    }

    .game-card.hint-reveal {
        animation: none;
    }

    .game-modal {
        transition: opacity 0.1s ease, visibility 0.1s ease;
    }

    .game-modal-content {
        transition: transform 0.1s ease;
    }
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .features {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

}

/* 🌙 KARANLIK MOD - Gece Çalışan Öğrenci */
[data-theme="dark"] {
    --bg-primary: #0F172A;
    --card-bg: #1E293B;
    --text-primary: #E5E7EB;
    --text-secondary: #94A3B8;
    --border-color: #334155;
    --primary-color: #3B82F6;
    --secondary-color: #22C55E;
    --cta-color: #F59E0B;
    --danger-color: #EF4444;
    --success-color: #22C55E;
    --success-bg: #064E3B;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .navbar {
    background-color: var(--card-bg);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .card,
[data-theme="dark"] .topic-card,
[data-theme="dark"] .exam-form,
[data-theme="dark"] .exam-info,
[data-theme="dark"] .stats-summary,
[data-theme="dark"] .auth-card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] table {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] table tbody tr:hover {
    background-color: #334155;
}

[data-theme="dark"] .admin-table-container {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .admin-table {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .admin-table tbody tr:hover {
    background-color: #334155;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .filter-group .form-control {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .subject-input-group {
    background-color: #1E293B;
    border-color: var(--border-color);
}

[data-theme="dark"] .progress-bar {
    background-color: #334155;
}

[data-theme="dark"] .nav-menu a:hover {
    background-color: #334155;
}

[data-theme="dark"] #dark-mode-toggle {
    color: var(--cta-color);
}

/* Footer Styles */
/* ============================================
   FOOTER - Premium Design System
   ============================================ */

:root {
    --footer-bg: linear-gradient(180deg, #F1F5F9 0%, #E2E8F0 100%);
    --footer-card: rgba(255, 255, 255, 0.8);
    --footer-border: rgba(0, 0, 0, 0.15);
    --footer-text: #111827;
    --footer-muted: #6B7280;
    --footer-link: #4B5563;
    --footer-link-hover: #2563EB;
    --footer-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --footer-bg: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    --footer-card: rgba(255, 255, 255, 0.08);
    --footer-border: rgba(255, 255, 255, 0.2);
    --footer-text: #E5E7EB;
    --footer-muted: #94A3B8;
    --footer-link: #CBD5E1;
    --footer-link-hover: #3B82F6;
}

/* Main Footer */
.main-footer {
    margin-top: 3rem;
    padding: 2rem 0 1.5rem;
    background: var(--footer-bg);
    border-top: 3px solid var(--footer-border);
    position: relative;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.main-footer .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Footer Support Section */
.footer-support {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--footer-card);
    border: 2px solid var(--footer-border);
    border-radius: 12px;
    box-shadow: var(--footer-shadow);
    text-align: center;
}

.footer-support-content h4 {
    margin: 0 0 0.75rem 0;
    color: var(--footer-text);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.footer-support-content p {
    margin: 0.375rem 0;
    color: var(--footer-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-support-email {
    margin-top: 0.5rem !important;
}

.footer-support-note,
.footer-support-version {
    font-size: 0.8125rem !important;
    color: var(--footer-muted, #6B7280) !important;
    margin-top: 0.375rem !important;
}

.footer-support-content a[href^="mailto:"] {
    color: var(--footer-link-hover);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.22s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-support-content a[href^="mailto:"]:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
    transform: translateX(2px);
}

.footer-support-content a[href^="mailto:"]:focus-visible {
    outline: 2px solid var(--footer-link-hover);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Footer Section Cards */
.footer-section {
    background: var(--footer-card);
    border: 2px solid var(--footer-border);
    border-radius: 16px;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: var(--footer-shadow);
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.footer-section h4 {
    margin: 0 0 1rem 0;
    color: var(--footer-text);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.footer-section p {
    margin: 0.5rem 0;
    color: var(--footer-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer Links */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li:last-child {
    margin-bottom: 0;
}

.footer-section ul li a {
    color: var(--footer-link);
    text-decoration: none;
    transition: all 0.22s ease;
    display: inline-block;
    padding: 0.25rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-link-hover);
    transition: width 0.22s ease;
}

.footer-section ul li a:hover {
    color: var(--footer-link-hover);
    transform: translateX(4px);
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.footer-section ul li a:focus-visible {
    outline: 2px solid var(--footer-link-hover);
    outline-offset: 4px;
    border-radius: 4px;
}

.footer-section a[href^="mailto:"] {
    color: var(--footer-link-hover);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.22s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-section a[href^="mailto:"]:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
    transform: translateX(2px);
}

.footer-section a[href^="mailto:"]:focus-visible {
    outline: 2px solid var(--footer-link-hover);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Footer Message Block */
.footer-message {
    margin: 0 0 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(239, 68, 68, 0.12) 100%);
    border-radius: 12px;
    border: 2px solid var(--footer-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.footer-message:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(239, 68, 68, 0.12) 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

.footer-message-content {
    max-width: 100%;
    margin: 0;
}

.footer-message-content h4 {
    margin: 0 0 1rem 0;
    color: var(--footer-text);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.footer-message-content p {
    margin: 0 0 1rem 0;
    color: var(--footer-text);
    line-height: 1.6;
    text-align: left;
    font-size: 0.875rem;
}

.footer-message-content p:last-of-type:not(.footer-message-highlight) {
    margin-bottom: 0;
}

/* Footer Message Highlight */
.footer-message-highlight {
    background: #ECFDF5;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #22C55E;
    margin-top: 1rem !important;
    transition: all 0.3s ease;
}

.footer-message-highlight:hover {
    background: #D1FAE5;
    border-left-width: 5px;
    transform: translateX(2px);
}

.footer-message-highlight strong {
    color: #16A34A;
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.375rem;
}

.footer-message-highlight p {
    margin: 0;
    color: #065F46;
    line-height: 1.5;
    font-size: 0.875rem;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 2px solid var(--footer-border);
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-bottom p {
    margin: 0;
    color: var(--footer-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Admin Footer */
.admin-footer {
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
    background: var(--card-bg, #FFFFFF);
    border-top: 1px solid var(--border-color, #E5E7EB);
}

/* Dark Mode Overrides */
[data-theme="dark"] .main-footer,
[data-theme="dark"] .admin-footer {
    background: var(--footer-bg);
    border-top-color: var(--footer-border);
}

[data-theme="dark"] .footer-section {
    background: var(--footer-card);
    border-color: var(--footer-border);
}

[data-theme="dark"] .footer-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .footer-section h4 {
    color: var(--footer-text);
}

[data-theme="dark"] .footer-section p {
    color: var(--footer-muted);
}

[data-theme="dark"] .footer-section ul li a {
    color: var(--footer-link);
}

[data-theme="dark"] .footer-section ul li a:hover {
    color: var(--footer-link-hover);
}

[data-theme="dark"] .footer-message {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(239, 68, 68, 0.12) 100%);
    border-color: var(--footer-border);
}

[data-theme="dark"] .footer-message:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16) 0%, rgba(239, 68, 68, 0.16) 100%);
    border-color: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .footer-message-content h4 {
    color: var(--footer-text);
}

[data-theme="dark"] .footer-message-content p {
    color: var(--footer-text);
}

[data-theme="dark"] .footer-message-highlight {
    background: #064E3B;
    border-left-color: #22C55E;
}

[data-theme="dark"] .footer-message-highlight:hover {
    background: #065F46;
}

[data-theme="dark"] .footer-message-highlight strong {
    color: #22C55E;
}

[data-theme="dark"] .footer-message-highlight p {
    color: #A7F3D0;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: var(--footer-border);
}

[data-theme="dark"] .footer-bottom p {
    color: var(--footer-muted);
}

[data-theme="dark"] .footer-logo {
    opacity: 0.9;
}

/* Footer Legal Links */
.footer-legal {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--footer-border);
    text-align: center;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal-link {
    color: var(--footer-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-legal-link:hover {
    color: var(--footer-link-hover, #2563EB);
    text-decoration: underline;
}

.footer-legal-separator {
    color: var(--footer-muted);
    font-size: 0.8125rem;
    margin: 0 0.25rem;
    opacity: 0.5;
}

[data-theme="dark"] .footer-legal {
    border-top-color: var(--footer-border);
}

[data-theme="dark"] .footer-legal-link {
    color: var(--footer-muted);
}

[data-theme="dark"] .footer-legal-link:hover {
    color: var(--footer-link-hover, #60A5FA);
}

[data-theme="dark"] .footer-legal-separator {
    color: var(--footer-muted);
}

/* Legal Pages Styles */
.legal-page {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background: var(--bg-primary, #F8FAFC);
    color: var(--text-primary, #1F2937);
}

.legal-page .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-bg, #FFFFFF);
    border-radius: 12px;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary, #1F2937);
}

.legal-page h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: var(--primary-color, #2563EB);
}

.legal-page h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary, #1F2937);
}

.legal-page p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-primary, #1F2937);
}

.legal-page ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-page li {
    margin-bottom: 0.5rem;
    color: var(--text-primary, #1F2937);
}

.legal-page a {
    color: var(--primary-color, #2563EB);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-page a:hover {
    color: var(--primary-color, #1D4ED8);
    text-decoration: underline;
}

.legal-page section {
    margin-bottom: 2rem;
}

.legal-page strong {
    color: var(--text-primary, #1F2937);
    font-weight: 600;
}

/* Dark Mode for Legal Pages */
[data-theme="dark"] .legal-page {
    background: #0F172A;
    color: #F1F5F9;
}

[data-theme="dark"] .legal-page .container {
    background: #1E293B;
    border: 1px solid #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .legal-page h1 {
    color: #F1F5F9;
}

[data-theme="dark"] .legal-page h2 {
    color: #60A5FA;
}

[data-theme="dark"] .legal-page h3 {
    color: #E2E8F0;
}

[data-theme="dark"] .legal-page p {
    color: #E2E8F0;
}

[data-theme="dark"] .legal-page li {
    color: #E2E8F0;
}

[data-theme="dark"] .legal-page a {
    color: #60A5FA;
}

[data-theme="dark"] .legal-page a:hover {
    color: #93C5FD;
}

[data-theme="dark"] .legal-page strong {
    color: #F1F5F9;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 1.5rem 0;
    }
    
    .legal-page .container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .legal-page h1 {
        font-size: 1.75rem;
    }
    
    .legal-page h2 {
        font-size: 1.25rem;
    }
    
    .legal-page h3 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 1rem 0;
    }
    
    .legal-page .container {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .legal-page h1 {
        font-size: 1.5rem;
    }
    
    .legal-page h2 {
        font-size: 1.125rem;
    }
    
    .legal-page ul {
        margin-left: 1.5rem;
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .main-footer {
        padding: 1.5rem 0 1rem;
        margin-top: 2rem;
    }

    .main-footer .container {
        padding: 0 0.75rem;
    }

    .footer-message {
        margin: 0 0 1rem 0;
        padding: 1.25rem;
    }

    .footer-message-content h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-message-content p {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
    }

    .footer-message-highlight {
        padding: 0.875rem;
        margin-top: 0.75rem !important;
    }

    .footer-support {
        margin: 0 0 1rem 0;
        padding: 1.25rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        margin-top: 1rem;
    }
    
    .footer-legal {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .footer-legal-links {
        gap: 0.375rem;
    }
    
    .footer-legal-link {
        font-size: 0.75rem;
    }
    
    .footer-legal-separator {
        font-size: 0.75rem;
        margin: 0 0.125rem;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 1.25rem 0 0.75rem;
        margin-top: 1.5rem;
    }

    .main-footer .container {
        padding: 0 0.5rem;
    }

    .footer-message {
        padding: 1rem;
        margin-bottom: 0.875rem;
    }

    .footer-message-content h4 {
        font-size: 0.9375rem;
    }

    .footer-message-content p {
        font-size: 0.8125rem;
        margin-bottom: 0.625rem;
    }

    .footer-message-highlight {
        padding: 0.75rem;
    }

    .footer-support {
        padding: 1rem;
        margin-bottom: 0.875rem;
    }
    
    .footer-legal {
        margin-top: 0.875rem;
        padding-top: 0.875rem;
    }
    
    .footer-legal-links {
        gap: 0.25rem;
        flex-direction: column;
    }
    
    .footer-legal-link {
        font-size: 0.6875rem;
    }
    
    .footer-legal-separator {
        display: none;
    }

    .footer-support-content h4 {
        font-size: 0.9375rem;
    }

    .footer-support-content p {
        font-size: 0.8125rem;
    }

    .footer-bottom {
        padding-top: 0.875rem;
        margin-top: 0.875rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .footer-section,
    .footer-section ul li a,
    .footer-message,
    .footer-message-highlight {
        transition: none !important;
    }

    .footer-section:hover {
        transform: none;
    }

    .footer-section ul li a:hover {
        transform: none;
    }
}

/* Focus States for Keyboard Navigation */
.footer-section:focus-within {
    outline: 2px solid var(--footer-link-hover);
    outline-offset: 4px;
    border-radius: 16px;
}

/* İstiklal Marşı ve Gençliğe Hitabe Sayfası - Kırmızı Beyaz Tema */
.istiklal-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    background: #FFFFFF;
}

/* Hero Section */
.istiklal-hero {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.istiklal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="stars" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.3)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin: 0 0 2rem 0;
    opacity: 0.95;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.flag-decoration {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.flag-red,
.flag-white {
    width: 60px;
    height: 40px;
    border-radius: 4px;
}

.flag-red {
    background: #DC2626;
    border: 2px solid #991B1B;
}

.flag-white {
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
}

/* İstiklal Marşı Section */
.istiklal-marsi {
    background: #FFFFFF;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
}

.section-header-marsi {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.section-header-marsi .section-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.section-header-marsi h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.section-header-marsi .author {
    font-size: 1.25rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.95;
    font-style: italic;
}

.istiklal-content {
    padding: 3rem 2rem;
    background: #FFFFFF;
}

.verses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.verses-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.verses-left .verse {
    border-left: 6px solid #DC2626;
    border-right: none;
}

.verses-right .verse {
    border-right: 6px solid #DC2626;
    border-left: none;
}

.verse {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: #FFFFFF;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
    position: relative;
}

.verses-left .verse::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #DC2626 0%, #991B1B 100%);
}

.verses-right .verse::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #DC2626 0%, #991B1B 100%);
}

.verses-left .verse:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.2);
    background: #FEF2F2;
}

.verses-right .verse:hover {
    transform: translateX(-8px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.2);
    background: #FEF2F2;
}

.verse-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.verse-text {
    flex: 1;
    font-size: 1.25rem;
    color: #1F2937;
    line-height: 2;
    font-weight: 600;
}

.verse-text p {
    margin: 0.5rem 0;
    color: #1F2937;
}

/* Gençliğe Hitabe Section */
.genclige-hitabe {
    background: #FFFFFF;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
}

.section-header-hitabe {
    background: linear-gradient(135deg, #991B1B 0%, #DC2626 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.section-header-hitabe .section-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.section-header-hitabe h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.section-header-hitabe .author {
    font-size: 1.25rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.95;
    font-style: italic;
}

.hitabe-content {
    padding: 3rem 2rem;
    background: #FFFFFF;
}

.hitabe-text {
    max-width: 900px;
    margin: 0 auto;
}

.hitabe-paragraph {
    margin-bottom: 2rem;
    padding: 2rem;
    background: #FFFFFF;
    border-left: 6px solid #DC2626;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
}

.hitabe-paragraph:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.2);
    background: #FEF2F2;
}

.hitabe-paragraph.highlight {
    background: linear-gradient(135deg, #FEF2F2 0%, #FFFFFF 100%);
    border-left-width: 8px;
}

.hitabe-paragraph.highlight-final {
    background: linear-gradient(135deg, #FFFFFF 0%, #FEF2F2 100%);
    border-left-width: 8px;
    border-left-color: #991B1B;
}

.hitabe-paragraph p {
    font-size: 1.25rem;
    line-height: 2;
    color: #1F2937;
    margin: 0;
    text-align: justify;
    font-weight: 500;
}

.hitabe-paragraph strong {
    color: #DC2626;
    font-weight: 900;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Final Message */
.istiklal-final {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.istiklal-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="stars2" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.3)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars2)"/></svg>');
    opacity: 0.3;
}

.final-content {
    position: relative;
    z-index: 1;
}

.final-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 2rem 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.flag-waves {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 2rem;
}

.wave {
    width: 80px;
    height: 50px;
    border-radius: 4px;
}

.wave-red {
    background: #DC2626;
    border: 2px solid #991B1B;
}

.wave-white {
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Karanlık Mod - İstiklal Sayfası */
[data-theme="dark"] .istiklal-page {
    background: #0F172A;
}

[data-theme="dark"] .istiklal-hero,
[data-theme="dark"] .section-header-marsi,
[data-theme="dark"] .section-header-hitabe,
[data-theme="dark"] .istiklal-final {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
}

[data-theme="dark"] .istiklal-content,
[data-theme="dark"] .hitabe-content {
    background: #1E293B;
}

[data-theme="dark"] .verse,
[data-theme="dark"] .hitabe-paragraph {
    background: #1E293B;
    border-left-color: #DC2626;
}

[data-theme="dark"] .verse:hover,
[data-theme="dark"] .hitabe-paragraph:hover {
    background: #2D1B1B;
}

[data-theme="dark"] .verse-text,
[data-theme="dark"] .verse-text p,
[data-theme="dark"] .hitabe-paragraph p {
    color: #E5E7EB;
}

[data-theme="dark"] .hitabe-paragraph.highlight {
    background: linear-gradient(135deg, #2D1B1B 0%, #1E293B 100%);
}

[data-theme="dark"] .hitabe-paragraph.highlight-final {
    background: linear-gradient(135deg, #1E293B 0%, #2D1B1B 100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .verses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .verses-left .verse,
    .verses-right .verse {
        border-left: 6px solid #DC2626;
        border-right: none;
    }

    .verses-right .verse::after {
        display: none;
    }

    .verses-right .verse:hover {
        transform: translateX(8px);
    }
}

@media (max-width: 768px) {
    .istiklal-hero {
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-header-marsi,
    .section-header-hitabe {
        padding: 2rem 1.5rem;
    }

    .section-header-marsi h2,
    .section-header-hitabe h2 {
        font-size: 1.75rem;
    }

    .istiklal-content,
    .hitabe-content {
        padding: 2rem 1.5rem;
    }

    .verse {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .verse-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        align-self: flex-start;
    }

    .verse-text {
        font-size: 1.125rem;
    }

    .hitabe-paragraph {
        padding: 1.5rem;
    }

    .hitabe-paragraph p {
        font-size: 1.125rem;
    }

    .hitabe-paragraph strong {
        font-size: 1.25rem;
    }

    .istiklal-final {
        padding: 3rem 1.5rem;
    }

    .final-content h2 {
        font-size: 2rem;
    }

    .flag-red,
    .flag-white,
    .wave {
        width: 50px;
        height: 35px;
    }
}

