/* ===== HEADER BÖLÜMÜ CSS - DÜZELTILMIŞ VERSİYON ===== */

/* Site header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
    background: rgba(0, 0, 0, 0.1); /* Hafif şeffaf arka plan */
}

/* Header gizleme - scroll ile */
.site-header.hidden {
    transform: translateY(-100%);
}

/* Kırmızı Arka Plan - Daha ovalimsi */
.header-bg {
    position: absolute;
    top: -100px;
    right: -50px;
    width: 30%;
    height: 250px;
    background-color: #e20613;
    border-radius: 0 0 0 70%; /* Sol alt köşe oval */
    transform: rotate(-15deg); /* Hafif eğim */
    z-index: -1;
}

/* Logo */
.logo-container {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.logo {
    height: 65px;
    width: auto;
    margin-top: 10px;
}

/* Sağ Bölüm */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* Sosyal Medya İkonları */
.social-icons {
    display: flex;
    gap: 4px;
}

.social-icons a {
    color: white;
    margin: 0;
    font-size: 1rem;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Dikey Ayraç */
.divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

/* ===== DİL SEÇİCİ MENÜSÜ ===== */

/* Dil Seçici Ana Container */
.lang-selector {
    position: relative;
    flex-shrink: 0;
}

/* Dil Butonu */
.lang-selector .lang-btn {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lang-selector .lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mevcut dil bayrağı */
.lang-selector .current-flag {
    width: 20px;
    height: 15px;
    margin-right: 6px;
    border-radius: 2px;
    object-fit: cover;
}

/* Dropdown ok işareti */
.lang-selector .dropdown-arrow {
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.lang-selector.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dil Dropdown Menüsü */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.lang-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dil Seçenekleri */
.lang-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f8f9fa;
    color: #e20613;
}

.lang-option.current {
    background: rgba(226, 6, 19, 0.1);
    color: #e20613;
    font-weight: 600;
}

/* Dil bayrakları */
.lang-option .flag {
    width: 20px;
    height: 15px;
    margin-right: 10px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Dil kodları */
.lang-option .lang-code {
    font-size: 0.85rem;
    color: #666;
    margin-left: auto;
}

.lang-option:hover .lang-code {
    color: #e20613;
}

.lang-option.current .lang-code {
    color: #e20613;
}

/* Arama Butonu */
.search-btn {
    color: white;
    font-size: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Menü Butonu */
.menu-btn {
    display: flex;
    align-items: center;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-btn span {
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 8px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 15px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Hamburger animasyonu */
.menu-btn.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Arama Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #e20613;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 80%;
    max-width: 800px;
    position: relative;
}

.search-container form {
    position: relative;
}

.search-container input {
    width: 100%;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    padding: 15px 50px 15px 0;
    font-size: 2rem;
    color: white;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.search-container input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-container button[type="submit"] {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.close-search:hover {
    transform: rotate(90deg);
}

/* ===== RESPONSIVE TASARIM ===== */

/* Tablet */
@media (max-width: 992px) {
    .social-icons {
        display: none;
    }
    
    .divider {
        display: none;
    }
    
    .header-bg {
        width: 40%;
        height: 220px;
        top: -80px;
    }
    
    .site-header {
        padding: 0 20px;
        gap: 10px;
    }
    
    .header-right {
        gap: 6px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .site-header {
        padding: 0 15px;
        height: 70px;
        gap: 8px;
    }
    
    .logo {
        height: 55px;
    }
    
    .header-bg {
        width: 45%;
        height: 180px;
        top: -60px;
        right: -25px;
    }
    
    .header-right {
        gap: 4px;
    }
    
    .lang-selector .lang-btn {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
    
    .lang-selector .current-flag {
        width: 18px;
        height: 13px;
    }
    
    .lang-dropdown {
        min-width: 120px;
        right: -10px;
    }
    
    .lang-option {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .lang-option .flag {
        width: 18px;
        height: 13px;
    }
    
    .search-btn {
        padding: 6px;
        font-size: 0.9rem;
    }
    
    .menu-btn {
        padding: 6px 8px;
        display: flex !important; /* Mobilde hamburger menü kesinlikle görünsün */
        align-items: center;
    }
    
    .menu-btn span {
        font-size: 0.8rem;
        margin-right: 6px;
    }
    
    .hamburger {
        width: 16px;
        height: 13px;
        display: flex !important; /* Kesinlikle görünsün */
        flex-direction: column;
        justify-content: space-between;
    }
    
    .hamburger span {
        display: block !important; /* Kesinlikle görünsün */
        width: 100%;
        height: 2px;
        background-color: white;
    }
    
    .search-container {
        width: 90%;
    }
    
    .search-container input {
        font-size: 1.5rem;
        padding: 12px 40px 12px 0;
    }
    
    .close-search {
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
}

/* Çok küçük ekranlar */
@media (max-width: 480px) {
    .site-header {
        padding: 0 10px;
        gap: 6px;
    }
    
    .logo {
        height: 50px;
    }
    
    .header-bg {
        width: 35%;
        height: 150px;
        top: -45px;
        right: -20px;
    }
    
    .header-right {
        gap: 2px;
    }
    
    /* Dil seçici - sadece bayrak göster */
    .lang-selector .lang-btn span:not(.dropdown-arrow) {
        display: none;
    }
    
    .lang-selector .current-flag {
        margin-right: 2px;
    }
    
    .lang-selector .lang-btn {
        padding: 6px;
    }
    
    /* Menü butonu - "MENÜ" yazısını gizle */
    .menu-btn span {
        display: none;
    }
    
    .menu-btn {
        padding: 6px;
        display: flex !important; /* Kesinlikle görünsün */
    }
    
    .search-btn {
        padding: 5px;
        font-size: 0.85rem;
    }
    
    .hamburger {
        width: 15px;
        height: 12px;
        display: flex !important; /* Kesinlikle görünsün */
    }
}

/* Ekstra küçük ekranlar */
@media (max-width: 360px) {
    .site-header {
        padding: 0 8px;
        gap: 4px;
    }
    
    .logo {
        height: 45px;
    }
    
    .header-bg {
        width: 30%;
        height: 130px;
        top: -40px;
        right: -15px;
    }
    
    .header-right {
        gap: 1px;
    }
    
    .lang-selector .lang-btn {
        padding: 4px;
    }
    
    .search-btn {
        padding: 4px;
    }
    
    .menu-btn {
        padding: 4px;
        display: flex !important; /* Kesinlikle görünsün */
    }
    
    .hamburger {
        width: 14px;
        height: 11px;
        display: flex !important; /* Kesinlikle görünsün */
    }
}