/* --- Header Değişkenleri --- */
:root {
    --logo-blue: #1e40af;
    --logo-blue-hover: #1e3a8a;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --header-border: rgba(0, 0, 0, 0.08);
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Header Ana Yapı --- */
.main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.main-header.scrolled {
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Logo Tasarımı --- */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.8px;
}

.logo i {
    color: var(--logo-blue);
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(30, 64, 175, 0.2));
}

.logo span {
    color: var(--logo-blue);
    position: relative;
}

/* --- Navigasyon Linkleri --- */
.navbar ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.navbar a:hover, .navbar a.active {
    color: #111827;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--logo-blue);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar a:hover::after, .navbar a.active::after {
    width: 100%;
}

/* --- Buton Grupları --- */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--logo-blue);
}

.btn-signup {
    text-decoration: none;
    background: var(--logo-blue);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
    transition: var(--transition);
}

.btn-signup:hover {
    background: var(--logo-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.35);
}

/* =========================================
   --- MOBİL UYUMLULUK AYARLARI ---
   ========================================= */

.mobile-nav-toggle {
    display: none;
    font-size: 26px;
    color: #111827;
    cursor: pointer;
    z-index: 10001; 
}

.mobile-auth-buttons {
    display: none;
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: block;
    }

    /* Arka Plan Karartma (Overlay) */
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 9999;
    }

    /* Navbar Mobilde Şık Bir Panel Oluyor */
    .navbar {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 85%; 
        max-width: 350px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        display: flex;
        flex-direction: column;
        padding: 90px 30px 40px; 
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000;
        overflow-y: auto; 
    }

    .navbar.nav-active {
        right: 0; 
    }

    /* Linklerin Dizilimi */
    .navbar ul {
        flex-direction: column;
        gap: 10px; 
    }

    /* Link Tasarımı */
    .navbar a {
        font-size: 17px;
        font-weight: 600;
        color: #334155;
        display: block;
        width: 100%;
        padding: 14px 20px; 
        border-radius: 10px; 
        background: #f8fafc; 
        border-bottom: none; 
        transition: all 0.2s ease;
    }

    /* Link Hover/Aktif Durumu */
    .navbar a:hover, .navbar a.active {
        background: #eff6ff; 
        color: var(--logo-blue);
    }
    
    .navbar a::after {
        display: none; 
    }

    /* Mobilde Butonlar Alt Alta */
    .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 2px dashed #e2e8f0; 
    }

    /* Mobil Giriş Yap Butonu */
    .mobile-auth-buttons .btn-login {
        justify-content: center;
        background: transparent;
        color: #334155;
        border: 2px solid #e2e8f0;
        padding: 14px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 16px;
    }

    /* Mobil Kayıt Ol Butonu */
    .mobile-auth-buttons .btn-signup {
        justify-content: center;
        padding: 16px;
        background-color: #007bff;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
}