/* ========================================================= */
/* 1. HEADER & NAVİGASYON */
/* ========================================================= */
.main-header {
    position: sticky; 
    top: 0;
    z-index: 1000; 
    background-color: rgba(255, 255, 255, 0.95); /* Yarı şeffaf beyaz */
    backdrop-filter: blur(8px); 
    padding: 18px var(--spacing-lg);
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    flex-wrap: wrap; 
    min-height: 70px;
    border-bottom: 1px solid var(--color-border);
}

/* Logo Metnini gizle */
.main-header .logo h1 {
    display: none; 
}

/* HEADER LOGO GÖRSELİ STİLİ */
.header-logo-banner {
    max-height: 50px; /* Header'daki boyut (%25 büyütüldü) */
    width: auto; 
    filter: none; 
    flex-shrink: 0; 
}


.main-nav {
    flex-grow: 1; 
    text-align: center;
    margin-left: var(--spacing-md);
}

.main-nav ul {
    list-style: none;
    display: flex; 
    justify-content: center;
    gap: var(--spacing-md);
}

.main-nav a {
    color: var(--color-text-muted); 
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px; 
    background-color: var(--color-primary);
    left: 0;
    bottom: -5px;
    transform: scaleX(0); 
    transition: transform var(--transition-speed) var(--transition-easing);
}

.main-nav a:hover {
    color: var(--color-primary); 
}

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

.menu-toggle {
    display: none; 
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-left: auto; 
}

.contact-btn {
    margin-left: var(--spacing-sm);
}

/* ========================================================= */
/* 2. DİL SEÇİM MENÜSÜ (DROPDOWN) */
/* ========================================================= */
.language-dropdown {
    position: relative;
    z-index: 999; 
}

.lang-toggle {
    background-color: var(--color-dark-surface);
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.lang-toggle:hover {
    background-color: var(--color-border);
    border-color: var(--color-primary);
}

.flag-icon-small {
    width: 18px; 
    height: auto;
    border-radius: 2px;
}

.lang-menu {
    display: none; 
    position: absolute;
    top: 100%;
    right: 0; 
    z-index: 990; 
    margin-top: 5px;
    background-color: var(--color-dark-surface); /* Beyaz arka plan */
    border: 1px solid var(--color-border);
    border-radius: 4px;
    min-width: 180px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-speed) ease-out, transform var(--transition-speed) ease-out;
}

.language-dropdown:hover .lang-menu,
.language-dropdown.open .lang-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.lang-menu a {
    color: var(--color-text-light);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background-color 0.15s;
}

.lang-menu a:hover,
.lang-menu a.active {
    background-color: rgba(255, 0, 0, 0.1); 
    color: var(--color-primary);
}

/* ========================================================= */
/* 3. MEGA FOOTER (layout) */
/* ========================================================= */
.mega-footer {
    background-color: var(--color-dark-surface); /* Ana arka plan */
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

/* Üst CTA Alanı */
.footer-top-cta {
    padding: var(--spacing-md) 0 var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--spacing-lg);
}

.footer-top-cta h3 {
    font-size: 1.8rem;
    color: var(--color-text-light); 
    margin-bottom: 5px;
}

.footer-top-cta p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Ana Grid Alanı */
.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr; 
    gap: var(--spacing-lg);
}

.footer-col h4 {
    font-size: 1.1rem;
    color: var(--color-text-light); 
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--color-primary);
}

/* FOOTER LOGO STİLİ İPTAL EDİLDİ (Sadece metin kullanılıyor) */
/* .footer-logo-container { display: none; } */
/* .footer-logo-banner { display: none; } */


.footer-logo h2 {
    display: inline;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
    color: var(--color-text-light);
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: var(--spacing-md);
    line-height: 1.5;
}

/* Sosyal Medya Listesi */
.social-list a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-list i {
    font-size: 1rem;
    width: 20px; 
    text-align: center;
    color: var(--color-text-muted);
}
.social-list a:hover i {
    color: var(--color-primary);
}

/* Telif Hakkı */
.footer-copyright {
    text-align: center;
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

.footer-copyright p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* ========================================================= */
/* 4. WHATSAPP SABİT BUTON */
/* ========================================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: var(--spacing-md); /* Alttan 25px boşluk */
    right: var(--spacing-md);  /* Sağdan 25px boşluk */
    background-color: var(--color-primary); /* Kırmızı vurgu rengi */
    color: var(--color-dark-surface); /* Beyaz/açık ikon */
    border-radius: 50%; /* Yuvarlak buton */
    text-align: center;
    font-size: 30px;
    line-height: 60px; /* İkonu dikeyde ortala */
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4); /* Hafif kırmızı gölge */
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1); /* Hover'da hafif büyüme */
    background-color: var(--color-secondary); /* İkincil renk (Mor) */
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}


/* ========================================================= */
/* 5. RESPONSIVE TASARIM (Media Queries) */
/* ========================================================= */
@media (max-width: 992px) {
    /* Menü daralınca taşmaması için 992px'te mobil görünüme geçirelim */
    .main-nav { 
        display: none; 
        width: 100%; 
    }
    
    /* Mobil'de aksiyonları gizle (JS ile menü açılınca görünecek) */
    .header-actions {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Mobil menü toggle butonunu göster */
    .menu-toggle {
        display: block;
        margin-left: auto; 
    }

    /* Logo küçültme */
    .header-logo-banner {
        max-height: 37px; 
    }

    /* Mobil menü açıldığında header-actions'ı görünür yap */
    .main-header.active .header-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: var(--spacing-sm);
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Mobil menü açıldığında ana navigasyonu göster */
    .main-nav.active { 
        display: block; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--color-dark-surface);
        padding: var(--spacing-md);
        box-shadow: 0 8px 16px rgba(0,0,0,0.5);
        opacity: 1;
        transform: translateY(0);
        transition: none; 
    }
    
    .main-nav.active .nav-list {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .language-dropdown {
        display: block; 
    }
    
    .contact-btn {
        margin-left: 0;
        display: block;
        width: 100%;
        margin-top: 10px;
    }
    
    /* Footer Düzenlemesi */
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }
    
    .logo-col {
        grid-column: 1 / 3; 
    }

    /* Diğer Responsive Düzenlemeler */
    .hero-content h2 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; gap: 15px; }
    
    /* Kapsayıcılar */
    .choose-us-grid, .stats-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    
    .clock-item { 
        flex-basis: 48%; 
        border-right: none !important; 
        border-bottom: 1px solid var(--color-border); 
        margin-bottom: var(--spacing-sm); 
    }
    .clock-item:nth-child(2n-1) { 
        border-right: 1px solid var(--color-border); 
    }

}

@media (max-width: 576px) {
    /* Çok küçük ekranlarda 1 sütun */
    .footer-main-grid {
        grid-template-columns: 1fr;
    }
    .logo-col {
        grid-column: 1 / 2;
    }
    .choose-us-grid, .stats-grid, .partner-logo-grid, .blog-grid {
        grid-template-columns: 1fr; 
    }
    .clock-item {
        flex-basis: 100%;
        border-right: none !important;
    }

    /* WhatsApp Butonu Mobil Boyut */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        line-height: 50px;
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
    }
}