/**
 * Hacıoğlu Gold Mine - Header CSS
 * Tüm header stilleri bu dosyada
 */

/* =============================================
   HEADER BASE
============================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    height: var(--header-height, 100px);
}

.site-header.sticky {
    position: fixed;
    background-color:black;
}

.site-header.scrolled {
    position: fixed;
    background: var(--header-scrolled-bg, rgba(13,13,13,0.95)) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    height: var(--header-height, 100px);
}

.site-header .container {
    max-width: 100%;
    padding: 20px 40px;
    height: 100%;
}

.site-header.scrolled .container {
    padding: 0 40px;
}

/* =============================================
   HEADER INNER - Logo ve Menü Ortalama
============================================= */

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    height: 100%;
    margin: 0;
    padding: 0;
}

.site-header.scrolled .header-inner {
    margin: 0;
    padding: 0 0 20px 0;
}

/* =============================================
   LOGO - Dikey Logo Desteği
============================================= */

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
    padding: 10px 0;
}

.header-logo img {
    height: var(--logo-height, 70px);
    width: auto;
    max-width: 550px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.site-header.scrolled .header-logo img {
    height: calc(var(--logo-height, 70px) * 0.85);
}

.header-logo .logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--header-text, #fff);
    font-family: 'Coranto Headline', 'Playfair Display', serif;
    white-space: nowrap;
}

/* =============================================
   NAVIGATION - Logoyla Dikey Ortalı
============================================= */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    height: 100%;
}

.main-nav > a,
.main-nav .nav-dropdown > a {
    color: var(--header-text, #fff);
    padding: 10px 14px;
    font-family: var(--menu-font, 'Montserrat', sans-serif);
    font-size: var(--menu-size, 13px);
    font-weight: var(--menu-weight, 500);
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav > a::after,
.main-nav .nav-dropdown > a::after {
    content: '';
    position: absolute;
    bottom: 25%;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--header-hover, #ebc991);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav > a:hover::after,
.main-nav > a.active::after,
.main-nav .nav-dropdown:hover > a::after,
.main-nav .nav-dropdown > a.active::after {
    transform: scaleX(1);
}

.main-nav > a:hover,
.main-nav > a.active,
.main-nav .nav-dropdown:hover > a {
    color: var(--header-hover, #ebc991);
}

/* =============================================
   DROPDOWN MENU
============================================= */

.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown > a i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover > a i {
    transform: rotate(180deg);
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #FDFCFA;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    height: auto;
}

.nav-dropdown .dropdown-menu a:hover {
    background: var(--gold-cream, #FDF8E8);
    color: var(--gold-primary, #755d35);
    padding-left: 25px;
}

.nav-dropdown .dropdown-menu a::after {
    display: none;
}

/* =============================================
   HEADER ACTIONS
============================================= */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-shrink: 0;
    height: 100%;
}

/* =============================================
   LANGUAGE DROPDOWN
============================================= */

.lang-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--header-text, #fff);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-dropdown-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.lang-dropdown-toggle i:last-child {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.lang-dropdown.open .lang-dropdown-toggle i:last-child {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: #FDFCFA;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 100;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-dropdown-menu a:hover {
    background: var(--gold-cream, #FDF8E8);
}

.lang-dropdown-menu a.active {
    background: var(--gold-gradient, linear-gradient(135deg, var(--gold-gradient-start, #755d35), var(--gold-gradient-end, #ebc991)));
    color: #fff;
}

.lang-dropdown-menu .flag {
    font-size: 18px;
}

/* =============================================
   LANGUAGE STYLES - PILLS
============================================= */

.lang-pills {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 4px;
}

.lang-pills a {
    padding: 8px 16px;
    color: var(--header-text, #fff);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.lang-pills a.active {
    background: var(--gold-gradient, linear-gradient(135deg, var(--gold-gradient-start, #755d35), var(--gold-gradient-end, #ebc991)));
    color: #fff;
}

.lang-pills a:not(.active):hover {
    background: rgba(255,255,255,0.1);
}

/* =============================================
   LANGUAGE STYLES - BUTTONS
============================================= */

.lang-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-buttons a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: var(--header-text, #fff);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-buttons a:hover {
    background: rgba(255,255,255,0.2);
}

.lang-buttons a.active {
    background: var(--gold-gradient, linear-gradient(135deg, var(--gold-gradient-start, #755d35), var(--gold-gradient-end, #ebc991)));
    border-color: var(--gold-gradient-start, #755d35);
    color: #fff;
}

/* =============================================
   LANGUAGE STYLES - MINIMAL
============================================= */

.lang-minimal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-minimal a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-minimal a:hover,
.lang-minimal a.active {
    color: var(--header-hover, #ebc991);
}

.lang-minimal .divider {
    color: rgba(255,255,255,0.3);
}

/* =============================================
   MOBILE MENU TOGGLE
============================================= */

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--header-text, #fff);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* =============================================
   MOBILE MENU
============================================= */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, #0D0D0D 0%, #1a1a1a 100%);
    z-index: 999;
    transition: right 0.4s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-inner {
    padding: 100px 30px 30px;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--gold-primary, #755d35);
    padding-left: 10px;
}

.mobile-nav-group .mobile-nav-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-group .mobile-nav-parent i {
    transition: transform 0.3s ease;
}

.mobile-nav-group.open .mobile-nav-parent i {
    transform: rotate(180deg);
}

.mobile-nav-sub {
    display: none;
    padding-left: 20px;
    background: rgba(255,255,255,0.05);
    margin: 0 -30px;
    padding: 10px 30px 10px 50px;
}

.mobile-nav-group.open .mobile-nav-sub {
    display: block;
}

.mobile-nav-sub a {
    font-size: 15px;
    padding: 12px 0;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-menu-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-lang {
    display: flex;
    gap: 15px;
}

.mobile-lang a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-lang a.active {
    background: var(--gold-gradient, linear-gradient(135deg, var(--gold-gradient-start, #755d35), var(--gold-gradient-end, #ebc991)));
}

.mobile-lang a:hover:not(.active) {
    background: rgba(255,255,255,0.2);
}

/* Language Flag SVG */
.lang-flag {
    width: 24px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0,0,0,0.2);
}

.mobile-lang .lang-flag {
    width: 28px;
    height: 19px;
    border-radius: 3px;
}

.lang-dropdown-menu .lang-flag,
.lang-buttons .lang-flag {
    width: 22px;
    height: 15px;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =============================================
   RESPONSIVE - 1600px+ (Çok Geniş Ekranlar)
============================================= */

@media (min-width: 1601px) {
    .header-inner {
        gap: 50px;
    }
    
    .main-nav > a,
    .main-nav .nav-dropdown > a {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* =============================================
   RESPONSIVE - 1440px - 1600px
============================================= */

@media (max-width: 1600px) {
    .site-header .container {
        padding: 0 30px;
    }
    
    .header-inner {
        gap: 25px;
    }
    
    .main-nav > a,
    .main-nav .nav-dropdown > a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .header-logo img {
        max-width: 180px;
    }
}

/* =============================================
   RESPONSIVE - 1366px - 1439px (Standart Laptop)
============================================= */

@media (max-width: 1439px) {
    .site-header .container {
        padding: 0 25px;
    }
    
    .header-inner {
        gap: 18px;
    }
    
    .main-nav > a,
    .main-nav .nav-dropdown > a {
        padding: 8px 9px;
        font-size: 12px;
        letter-spacing: 0;
    }
    
    .header-logo img {
        max-width: 160px;
    }
    
    .lang-dropdown-toggle {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* =============================================
   RESPONSIVE - 1280px - 1365px (Küçük Laptop)
============================================= */

@media (max-width: 1365px) {
    .site-header .container {
        padding: 0 20px;
    }
    
    .header-inner {
        gap: 12px;
    }
    
    .main-nav > a,
    .main-nav .nav-dropdown > a {
        padding: 8px 7px;
        font-size: 11px;
    }
    
    .header-logo img {
        max-width: 140px;
    }
    
    .lang-dropdown-toggle {
        padding: 6px 10px;
        font-size: 11px;
        gap: 5px;
    }
    
    .lang-dropdown-toggle i.fa-globe {
        display: none;
    }
    
    .header-actions {
        gap: 10px;
    }
}

/* =============================================
   RESPONSIVE - 1200px - 1279px
============================================= */

@media (max-width: 1279px) {
    .site-header .container {
        padding: 0 15px;
    }
    
    .header-inner {
        gap: 8px;
    }
    
    .main-nav > a,
    .main-nav .nav-dropdown > a {
        padding: 8px 5px;
        font-size: 10px;
    }
    
    .header-logo img {
        max-width: 120px;
    }
    
    .lang-dropdown,
    .lang-pills,
    .lang-buttons {
        display: none !important;
    }
    
    .lang-minimal {
        display: flex !important;
    }
    
    .lang-minimal a {
        font-size: 10px;
    }
}

/* =============================================
   RESPONSIVE - 1100px - 1199px
============================================= */

@media (max-width: 1199px) {
    .main-nav > a,
    .main-nav .nav-dropdown > a {
        padding: 6px 4px;
        font-size: 9px;
    }
    
    .header-logo img {
        max-width: 110px;
    }
}

/* =============================================
   RESPONSIVE - 1100px altı (Mobil Menü)
============================================= */

@media (max-width: 1100px) {
    .main-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .lang-dropdown,
    .lang-pills,
    .lang-buttons,
    .lang-minimal {
        display: none !important;
    }

    .header-inner {
        justify-content: space-between;
        gap: 20px;
    }

    .header-logo img {
        height: auto !important;
        max-width: 240px;
        max-height: 500px;
    }

    .site-header .container {
        padding: 0 20px;
    }
}

/* =============================================
   RESPONSIVE - 768px altı (Tablet)
============================================= */

@media (max-width: 768px) {
    .site-header .container {
        padding: 0 15px;
    }

    .header-logo img {
        height: auto !important;
        max-width: 210px;
        max-height: 500px;
    }
}

/* =============================================
   RESPONSIVE - 480px altı (Mobil)
============================================= */

@media (max-width: 480px) {
    .site-header .container {
        padding: 0 10px;
    }

    .header-logo img {
        height: auto !important;
        max-width: 190px;
        max-height: 500px;
    }

    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
    }

    .mobile-menu-toggle span {
        width: 22px;
    }

    .mobile-menu {
        max-width: 100%;
    }

    .mobile-menu-inner {
        padding: 80px 20px 20px;
    }

    .mobile-nav a {
        font-size: 16px;
        padding: 14px 0;
    }

    .mobile-nav-sub a {
        font-size: 14px;
        padding: 11px 0;
    }

    .mobile-lang {
        flex-direction: column;
        gap: 10px;
    }

    .mobile-lang a {
        justify-content: center;
        padding: 14px 20px;
    }
}

/* =============================================
   MOBILE MENU - TOUCH & UX
============================================= */

/* iOS scroll fix */
.mobile-menu {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Body scroll lock - menu açıkken */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile menu toggle - büyük touch area */
@media (max-width: 1100px) {
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}
