/* ============================================================
   ArcanaAnima - Navbar CSS
   Dosya: assets/css/nav.css
   HTML: config/nav.php
   Tum sayfalara eklenir:
   <link rel="stylesheet" href="assets/css/nav.css">

   YAPI:
   Masaustu: Logo (sol) | Linkler (orta) | Giris/Kayit + Dil (sag)
   Mobil:    Logo (sol) | Hamburger + Dil ikonu + Kullanici ikonu (sag)
   ============================================================ */


/* ============================================================
   1. NAVBAR KAPSAYICI
   Sabit ust bar, tum sayfalarda gorunur.
   display:flex ile 3 bolum: sol/orta/sag
   ============================================================ */
.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10,10,20,0.95);
    border-bottom: 1px solid rgba(201,169,110,0.2);
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ============================================================
   2. LOGO - Sol taraf
   ============================================================ */
.nav-logo {
    color: gold;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    text-decoration: none;
    letter-spacing: 2px;
    flex-shrink: 0; /* Kuculmesini engeller */
}


/* ============================================================
   3. ANA LINKLER - Orta (Disiplinler, Makaleler, Tarot)
   Masaustunde: position absolute + translateX ile tam ortada
   Mobilede: Bu stil kaldirilir, dropdown olarak acilir (bkz. MOBIL bolumu)
   ============================================================ */
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    /* Masaustunde ortalama */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Her li elementi yatay hizali */
.nav-links li {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* Tum nav linkleri icin genel stil */
.nav-links li a {
    color: rgba(201,169,110,0.8);
    text-decoration: none;
    font-size: 0.88rem;
    font-family: Georgia, serif;
    transition: color 0.2s;
}

.nav-links li a:hover { color: gold; }


/* ============================================================
   4. DROPDOWN MENU - Disiplinler altmenusu
   Hover ile acilir.
   padding-bottom trick: fare linkten menüye gecerken kapanmasin diye
   aralarindaki boslugu doldurur.
   ============================================================ */
.dropdown {
    position: relative;
    padding-bottom: 4px; /* Fare gecisi icin bosluk */
}

/* Varsayilan gizli */
.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: calc(100% - 4px); /* padding-bottom ile ortusur */
    left: 0;
    background: rgba(10,10,20,0.98);
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 240px;
    z-index: 200;
}

/* Hover ile ac */
.dropdown:hover .dropdown-menu-custom { display: block; }

/* Dropdown icindeki linkler */
.dropdown-menu-custom a {
    display: block;
    padding: 10px 20px;
    color: #c9a96e;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu-custom a:hover {
    color: gold;
    background: rgba(201,169,110,0.05);
}


/* ============================================================
   5. SAG GRUP - Giris/Kayit + Ayirici + Dil Secici
   Masaustunde gorunur, mobilede gizlenir.
   Yerine mobilde ikonlar gelir (bkz. MOBIL bolumu)
   ============================================================ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Giris ve Kayit butonlari yan yana */
.nav-auth-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Giris/Kayit buton stili - kenarlıklı, az yuvarlak */
.nav-auth-btn {
    border: 1px solid rgba(201,169,110,0.5);
    padding: 6px 14px;
    border-radius: 20px;
    color: rgba(201,169,110,0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: Georgia, serif;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
    display: inline-block;
}

.nav-auth-btn:hover {
    border-color: gold;
    color: gold;
}

/* Giris/Kayit ile dil secici arasindaki ince dikey cizgi */
.nav-divider {
    width: 1px;
    height: 16px;
    background: rgba(201,169,110,0.3);
}

/* Dil secici linkleri - masaustu */
.nav-lang {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-lang a {
    color: rgba(201,169,110,0.85);
    padding: 8px 6px;
    text-decoration: none;
    font-size: 0.8rem;
}

/* Aktif dil - gold renk + alt cizgi */
.nav-lang a.active {
    color: gold;
    border-bottom: 1px solid gold;
}


/* ============================================================
   6. HAMBURGER BUTONU
   Masaustunde gizli (display:none).
   Mobilede gorunur, tiklaninca 3 cizgi X sekline donusur.
   ============================================================ */
.hamburger {
    display: none; /* Masaustunde gizli */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

/* 3 yatay cizgi */
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(201,169,110,0.8);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Acikken X animasyonu */
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ============================================================
   7. MOBIL IKONLAR - Dil (globe) ve Kullanici (kisi)
   Sadece mobilede gorunur.
   Her ikon tiklayinca kendi dropdown'unu acar.
   ============================================================ */

/* Ikon buton genel stili */
.nav-icon-btn {
    background: none;
    border: none;
    color: rgba(201,169,110,0.85);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    position: relative;
}



.nav-icon-dropdown a:hover { color: gold; }
.nav-icon-dropdown a.active { color: gold; font-weight: bold; }

/* Kullanici dropdown'undaki butonlar */
.nav-icon-dropdown .nav-auth-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
    padding: 6px 12px;
}


/* ============================================================
   8. MOBIL - 768px alti
   - Hamburger gorunur
   - Ana linkler (nav-links) gizlenir, hamburger ile acilir
   - Sag grup (nav-right) gizlenir
   - Mobil ikonlar (globe + kullanici) gorunur
   ============================================================ */
@media (max-width: 768px) {

    /* Hamburger gorunur */
    .hamburger { display: flex; }

    /* Mobil ikonlar gorunur */
    .nav-icon-btn { display: block; }

    /* Sag grup (masaustu Giris/Kayit + dil) gizlenir */
    .nav-right { display: none; }

    /* Ana linkler gizlenir, hamburger ile acilir */
    .nav-links {
        display: none !important;
        flex-direction: column !important;
        position: fixed;
        top: 57px; /* Navbar yuksekligi kadar asagi */
        left: 0; right: 0;
        transform: none; /* Masaustundeki ortalama iptal */
        background: rgba(10,10,20,0.98);
        border-bottom: 1px solid rgba(201,169,110,0.2);
        padding: 20px 30px;
        gap: 16px !important;
        z-index: 99;
    }

    /* Hamburger tiklaninca ac */
    .nav-links.open { display: flex !important; }

    /* Mobilede her link tam genislikte */
    .nav-links li { width: 100%; }

    .nav-links li a {
        font-size: 1rem;
        padding: 8px 0;
        display: block;
    }

    /* Dropdown mobilede her zaman acik - hover yok mobilede */
    .dropdown-menu-custom {
        display: block !important;
        position: static;
        border: none;
        padding: 0 0 0 16px;
        background: transparent;
        min-width: unset;
    }

    .dropdown-menu-custom a {
        padding: 6px 0;
        font-size: 0.9rem;
        white-space: normal;
    }

   
