/**
 * Header Stilleri - AGÜ Tarzı İki Satırlı Transparan Menü
 */

/* ===== HEADER ANA YAPISI ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999;
    transition: all 0.4s ease;
}

/* ===== TOP BAR (Üst Küçük Satır) - Sarı ===== */
.header-topbar {
    background: linear-gradient(90deg, #fecb15 0%, #f0b800 50%, #fecb15 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(254, 203, 21, 0.35);
}

.topbar-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-links a {
    color: #1a237e;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.topbar-links a:hover {
    color: #0d1340;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-social a {
    color: #1a237e;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.topbar-social a:hover {
    color: #0d1340;
    background: rgba(26, 35, 126, 0.12);
    transform: scale(1.1);
}

.topbar-search {
    background: transparent;
    border: none;
    color: #1a237e;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.4rem;
    transition: all 0.3s ease;
}

.topbar-search:hover {
    color: #0d1340;
}

/* ===== MAIN HEADER (Ana Menü Satırı) - Koyu lacivert tonu (siyah yerine) ===== */
.header-main {
    background: linear-gradient(180deg, 
        rgba(21, 28, 92, 0.98) 0%, 
        rgba(13, 19, 64, 0.98) 100%
    );
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(13, 19, 64, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 2rem;
}

/* ===== LOGO ===== */
.header-logo {
    flex-shrink: 0;
    z-index: 50;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.logo-img {
    max-height: 48px;
    height: auto;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

/* ===== NAVIGATION ===== */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-item.has-submenu {
    z-index: 100;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fecb15;
}

.nav-link.active {
    background: rgba(254, 203, 21, 0.9);
    color: #1a237e;
}

/* Kayıt Butonu - Vurgulu (Turuncu/Kırmızı) */
.nav-link.highlight {
    background: linear-gradient(135deg, #e65100, #ff6d00);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.4);
}

.nav-link.highlight:hover {
    background: linear-gradient(135deg, #ff6d00, #ff8f00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.5);
}

/* Submenu Icon */
.submenu-icon {
    font-size: 0.6rem;
    margin-left: 0.2rem;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.has-submenu:hover .submenu-icon {
    transform: rotate(180deg);
}

/* ===== SUBMENU ===== */
.submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 240px;
    background: #ffffff;
    backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    padding: 0.75rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100000;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Submenu ok işareti */
.submenu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #ffffff;
}

/* Üst gradient çizgi - renkli ve görünür */
.submenu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    height: 3px;
    background: linear-gradient(90deg, #1a237e 0%, #fecb15 50%, #e65100 100%);
    border-radius: 0 0 3px 3px;
    opacity: 1;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu li {
    margin-bottom: 0.25rem;
}

.submenu li:last-child {
    margin-bottom: 0;
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.submenu-link i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 35, 126, 0.08);
    border-radius: 6px;
    color: #1a237e;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.submenu-link:hover {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.06), rgba(254, 203, 21, 0.06));
    color: #1a237e;
    padding-left: 1.25rem;
}

.submenu-link:hover i {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: #fff;
}

/* ===== SCROLL DURUMU ===== */
.site-header.scrolled .header-topbar {
    background: linear-gradient(90deg, #fecb15 0%, #f0b800 50%, #fecb15 100%);
    backdrop-filter: blur(15px);
}

.site-header.scrolled .header-main {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .nav-link {
    color: #374151;
}

.site-header.scrolled .nav-link:hover {
    background: rgba(26, 35, 126, 0.08);
    color: #fecb15;
}

.site-header.scrolled .nav-link.active {
    background: rgba(26, 35, 126, 0.1);
    color: #1a237e;
}

.site-header.scrolled .nav-link.highlight {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
}

.site-header.scrolled .logo-link {
    background: transparent;
    box-shadow: none;
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hamburger-line {
    width: 22px;
    height: 2.5px;
    background: #1a237e;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active {
    background: #1a237e;
}

.mobile-menu-toggle.active .hamburger-line {
    background: #fff;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .nav-link {
        padding: 0.65rem 0.85rem;
        font-size: 0.8rem;
    }
    
    .topbar-links {
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    /* Topbar gizle mobilde */
    .header-topbar {
        display: none;
    }
    
    .site-header {
        background: #fff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    
    .header-main {
        background: transparent;
    }
    
    .logo-link {
        background: transparent;
        box-shadow: none;
    }
    
    .logo-img {
        filter: none;
        max-height: 42px;
    }
    
    /* ===== MOBİL MENÜ - GENİŞ VE KULLANIŞLI ===== */
    .main-navigation {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: linear-gradient(180deg, #0d1340 0%, #1a237e 100%) !important;
        padding: 0 !important;
        overflow-y: auto !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 99990 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .main-navigation.active {
        transform: translateX(0) !important;
    }
    
    /* Menü header alanı */
    .main-navigation::before {
        content: 'İKAF\'26';
        display: block;
        padding: 1.25rem 1.5rem;
        font-family: 'Poppins', sans-serif;
        font-size: 1.5rem;
        font-weight: 800;
        color: #fecb15;
        letter-spacing: 2px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0 2rem;
        flex: 1;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        width: 100%;
        padding: 1.1rem 1.5rem;
        border-radius: 0;
        background: transparent !important;
        color: #fff !important;
        box-shadow: none;
        font-size: 1.05rem;
        font-weight: 500;
        text-transform: none;
        transition: all 0.2s ease;
        letter-spacing: 0.3px;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        color: #fecb15 !important;
        background: rgba(255, 255, 255, 0.06) !important;
    }
    
    .nav-link.active {
        color: #fecb15 !important;
        background: rgba(254, 203, 21, 0.08) !important;
    }
    
    .nav-link.highlight {
        background: #fecb15 !important;
        color: #1a237e !important;
        font-weight: 700;
        border-radius: 12px;
        margin: 1rem 1.5rem;
        padding: 1rem 1.5rem;
        text-align: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(254, 203, 21, 0.3);
    }
    
    .nav-link.highlight:hover {
        background: #f0b800 !important;
        transform: scale(1.02);
    }
    
    .has-submenu .nav-link {
        justify-content: space-between;
    }
    
    .submenu-icon {
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.7rem;
        transition: transform 0.3s ease, color 0.3s ease;
    }
    
    .has-submenu.active .submenu-icon {
        transform: rotate(180deg);
        color: #fecb15;
    }
    
    /* Mobile Submenu */
    .submenu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(0, 0, 0, 0.15) !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.35s ease !important;
    }
    
    .submenu::before,
    .submenu::after {
        display: none !important;
    }
    
    .has-submenu.active .submenu {
        max-height: 800px !important;
        padding: 0.5rem 0 !important;
    }
    
    .submenu li {
        margin: 0;
    }
    
    .submenu-link {
        padding: 0.9rem 1.5rem 0.9rem 2.5rem;
        color: rgba(255, 255, 255, 0.85) !important;
        font-size: 0.95rem;
        border-radius: 0;
        transition: all 0.2s ease;
    }
    
    .submenu-link:hover {
        color: #fecb15 !important;
        background: rgba(255, 255, 255, 0.05) !important;
        padding-left: 2.75rem;
    }
    
    .submenu-link i {
        background: rgba(254, 203, 21, 0.12) !important;
        color: #fecb15 !important;
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }
    
    /* Hamburger / X Toggle */
    .mobile-menu-toggle {
        display: flex;
        z-index: 99995 !important;
        background: #1a237e;
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
    }
    
    .hamburger-line {
        background: #fff;
        width: 20px;
        height: 2px;
    }
    
    .mobile-menu-toggle.active {
        background: #fecb15;
        position: fixed;
        top: 1rem;
        right: 1rem;
    }
    
    .mobile-menu-toggle.active .hamburger-line {
        background: #1a237e;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .header-wrapper {
        padding: 0.5rem 0;
    }
    
    .logo-img {
        max-height: 36px;
    }
    
    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
    }
    
    .main-navigation::before {
        font-size: 1.35rem;
        padding: 1.15rem 1.25rem;
    }
    
    .nav-link {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .nav-link.highlight {
        margin: 0.75rem 1.25rem;
        padding: 0.9rem 1.25rem;
    }
    
    .submenu-link {
        padding: 0.85rem 1.25rem 0.85rem 2.25rem;
        font-size: 0.9rem;
    }
}
