/* ============================================
   MODERN HEADER STYLES
   ============================================ */

.header-modern * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header-modern {
    font-family: 'Dosis', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* ===== CONTAINER ===== */
.header-modern .container {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================
   TOP BAR
   ============================================ */
.header-top {
    background: #1a2a3a;
    padding: 6px 0;
    border-bottom: 2px solid #D32233;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-contact {
    display: flex;
    gap: 25px;
    font-size: 13px;
}

.header-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
}

.header-contact a:hover {
    color: #ffffff;
}

.header-contact a i {
    margin-right: 6px;
    color: #D32233;
}

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

.header-lang a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
}

.header-lang a:hover,
.header-lang a.active {
    color: #ffffff;
}

.header-lang span {
    color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   MAIN HEADER
   ============================================ */
.header-main {
    background: #ffffff;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-modern.sticky .header-main {
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-modern.sticky .header-top {
    display: none;
}

.header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header-logo img {
    height: 70px;
    width: auto;
    transition: height 0.3s ease;
}

.header-modern.sticky .header-logo img {
    height: 55px;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */
.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-list > li > a {
    display: block;
    padding: 8px 14px;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #D32233;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-list > li > a:hover {
    color: #D32233;
}

.nav-list > li > a:hover::after {
    width: 70%;
}

/* ============================================
   DESKTOP SEARCH
   ============================================ */
.header-search {
    position: relative;
    margin-left: 10px;
}

.search-toggle {
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 10px;
    transition: all 0.3s;
    border-radius: 50%;
}

.search-toggle:hover {
    color: #D32233;
    background: rgba(211, 34, 51, 0.05);
}

.search-box {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 400px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-box form {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e8ecf0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    font-family: 'Dosis', sans-serif;
}

.search-box input:focus {
    border-color: #D32233;
}

.search-box button {
    padding: 10px 18px;
    background: #D32233;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.search-box button:hover {
    background: #b01a2a;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.result,
.result3 {
    margin-top: 10px;
    max-height: 350px;
    overflow-y: auto;
}

.search-result-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f8f9fa;
    text-decoration: none;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #e8ecf0;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-info strong {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

.search-result-info span {
    color: #888;
    font-size: 12px;
}

.search-no-result {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ============================================
   MOBILE TOGGLE
   ============================================ */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 100;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: #ffffff;
    z-index: 10001;
    transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.mobile-nav-overlay.open {
    left: 0;
}

.mobile-nav-inner {
    padding: 20px 25px 30px;
}

/* Kapatma Butonu */
.mobile-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #2c3e50;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
    transition: color 0.3s;
}

.mobile-close:hover {
    color: #D32233;
}

/* Mobil Arama */
.mobile-search-menu {
    margin-top: 45px;
    margin-bottom: 20px;
}

.mobile-search-menu form {
    display: flex;
    gap: 10px;
}

.mobile-search-menu input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e8ecf0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    font-family: 'Dosis', sans-serif;
}

.mobile-search-menu input:focus {
    border-color: #D32233;
}

.mobile-search-menu button {
    padding: 10px 18px;
    background: #D32233;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.mobile-search-menu .result3 {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

/* Mobil Menü Linkleri */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f0f2f5;
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list li a {
    display: block;
    padding: 14px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-list li a:hover {
    color: #D32233;
    padding-left: 8px;
}

/* Mobil Dil */
.mobile-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #f0f2f5;
    margin-top: 10px;
}

.mobile-lang a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
}

.mobile-lang a:hover,
.mobile-lang a.active {
    color: #D32233;
}

.mobile-lang span {
    color: #ddd;
}

/* ============================================
   RESPONSIVE - TABLET & MOBILE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .nav-list > li > a {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* Mobile - 991px ve altı */
@media (max-width: 991px) {
    /* TOP BAR - TAMAMEN GİZLE */
    .header-top {
        display: none !important;
    }

    /* HEADER MAIN - Padding azalt */
    .header-main {
        padding: 10px 0 !important;
    }

    .header-modern.sticky .header-main {
        padding: 6px 0 !important;
    }

    /* Mobile toggle göster */
    .mobile-toggle {
        display: flex;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 101;
    }

    /* Desktop nav gizle */
    .header-nav {
        display: none !important;
    }

    /* Logo - ortala ve boyutlandır */
    .header-main-inner {
        justify-content: center;
        position: relative;
        min-height: 50px;
    }

    .header-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .header-logo img {
        height: 50px !important;
    }

    .header-modern.sticky .header-logo img {
        height: 42px !important;
    }

    /* Mobil overlay göster */
    .mobile-nav-overlay {
        display: block;
    }

    /* Body scroll engelle */
    body.menu-open {
        overflow: hidden;
    }
}

/* Küçük Mobile - 480px ve altı */
@media (max-width: 480px) {
    .header-main {
        padding: 8px 0 !important;
    }

    .header-logo img {
        height: 42px !important;
    }

    .header-modern.sticky .header-logo img {
        height: 35px !important;
    }

    .mobile-nav-overlay {
        width: 100%;
        max-width: 100%;
    }

    .mobile-nav-inner {
        padding: 15px 20px 20px;
    }

    .mobile-search-menu input {
        font-size: 13px;
        padding: 8px 12px;
    }

    .mobile-search-menu button {
        padding: 8px 14px;
        font-size: 14px;
    }

    .mobile-nav-list li a {
        font-size: 15px;
        padding: 12px 0;
    }

    .mobile-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }

    .mobile-search-menu {
        margin-top: 35px;
    }
}

/* Çok Küçük Mobile - 375px ve altı */
@media (max-width: 375px) {
    .header-logo img {
        height: 36px !important;
    }

    .mobile-nav-inner {
        padding: 12px 15px 15px;
    }

    .mobile-nav-list li a {
        font-size: 14px;
        padding: 10px 0;
    }

    .mobile-search-menu input {
        font-size: 12px;
        padding: 6px 10px;
    }

    .mobile-search-menu button {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ============================================
   DESKTOP - SADECE DESKTOPTA GÖRÜNENLER
   ============================================ */
@media (min-width: 992px) {
    .mobile-nav-overlay {
        display: none !important;
    }
    .mobile-search-menu {
        display: none !important;
    }
    .mobile-lang {
        display: none !important;
    }
}

/* ============================================
   EXTRA SMALL - Padding düzeltmesi
   ============================================ */
@media (max-width: 576px) {
    .header-modern .container {
        padding: 0 12px;
    }
}