/* 
 * AZ YACHTING Premium Header Optimization
 * Clean, Responsive, and Modern CSS Redesign
 */

:root {
    --header-bg: rgba(255, 255, 255, 0.98);
    --header-top-bg: #002b5b;
    --accent-gold: #c5a059;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE */
.main-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* TOP BAR */
.top-bar {
    background: var(--header-top-bg);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar .contact-info {
    display: flex;
    gap: 25px;
}

.top-bar .contact-info a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.top-bar .contact-info a i {
    color: var(--accent-gold);
}

.top-bar .contact-info a:hover {
    color: var(--accent-gold);
    opacity: 1;
}

.top-bar .language-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar .language-switcher a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.6;
    transition: var(--transition);
    padding: 2px 4px;
}

.top-bar .language-switcher a.active {
    opacity: 1;
    color: var(--accent-gold);
}

.top-bar .language-switcher a:hover {
    opacity: 1;
}

.top-bar .sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
}

/* NAV WRAPPER */
.nav-wrapper {
    background: var(--header-bg);
    padding: 25px 0;
    /* Logo sığsın diye genişletildi */
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Logo sola, menü hemen yanına */
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 0 20px;
    /* 200px'den 60px'e düşürüldü - Logo sola kaydı */
    gap: 24px;
    /* Gap'i margin ile yöneteceğiz */
}


/* LOGO - USER DEFINED SIZE - BÜYÜK LOGO */
.logo img,
.header-logo-img {
    height: 280px !important;
    /* 180px'ten 280px'e büyütüldü */
    width: auto !important;
    /* Orantılı kalması için auto */
    max-width: none !important;
    display: block;
    transition: var(--transition);
    object-fit: contain;
}

/* RESPONSIVE BREAKPOINTS - TÜMÜ BÜYÜTÜLDÜ */

/* LARGE DESKTOP */
@media (min-width: 1601px) {

    .logo img,
    .header-logo-img {
        height: 320px !important;
        /* 240px'ten 320px'e */
    }
}

/* STANDARD DESKTOP */
@media (min-width: 1401px) and (max-width: 1600px) {

    .logo img,
    .header-logo-img {
        height: 300px !important;
        /* 220px'ten 300px'e */
    }
}

/* MEDIUM DESKTOP */
@media (min-width: 1201px) and (max-width: 1400px) {

    .logo img,
    .header-logo-img {
        height: 280px !important;
        /* 200px'ten 280px'e */
    }
}

/* SMALL DESKTOP / LARGE TABLET */
@media (min-width: 1025px) and (max-width: 1200px) {

    .logo img,
    .header-logo-img {
        height: 250px !important;
        /* 180px'ten 250px'e */
    }
}

/* TABLET LANDSCAPE */
@media (min-width: 901px) and (max-width: 1024px) {

    .logo img,
    .header-logo-img {
        height: 220px !important;
        /* 160px'ten 220px'e */
    }
}

/* TABLET PORTRAIT & MOBILE */
@media (max-width: 900px) {

    .logo img,
    .header-logo-img {
        height: 200px !important;
        /* 150px'ten 200px'e - MOBİLDE DE BÜYÜK */
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .logo img,
    .header-logo-img {
        height: 180px !important;
        /* 140px'ten 180px'e */
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

    .logo img,
    .header-logo-img {
        height: 160px !important;
        /* 130px'ten 160px'e */
    }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 360px) {

    .logo img,
    .header-logo-img {
        height: 140px !important;
    }
}

/* STICKY EFFECT - STICKY'DE DE BÜYÜK */
.main-header.sticky .logo img,
.main-header.sticky .header-logo-img {
    height: 200px !important;
    /* 160px'ten 200px'e */
    transition: var(--transition);
}

/* LOGO - USER DEFINED SIZE - ÇOK BÜYÜK LOGO */
.logo img,
.header-logo-img {
    height: 350px !important;
    /* DAHA DA BÜYÜK */
    width: auto !important;
    max-width: none !important;
    display: block;
    transition: var(--transition);
    object-fit: contain;
}

/* RESPONSIVE BREAKPOINTS - DAHA DA BÜYÜK */

/* LARGE DESKTOP */
@media (min-width: 1601px) {

    .logo img,
    .header-logo-img {
        height: 380px !important;
    }
}

/* STANDARD DESKTOP */
@media (min-width: 1401px) and (max-width: 1600px) {

    .logo img,
    .header-logo-img {
        height: 350px !important;
    }
}

/* MEDIUM DESKTOP */
@media (min-width: 1201px) and (max-width: 1400px) {

    .logo img,
    .header-logo-img {
        height: 320px !important;
    }
}

/* SMALL DESKTOP / LARGE TABLET */
@media (min-width: 1025px) and (max-width: 1200px) {

    .logo img,
    .header-logo-img {
        height: 280px !important;
    }
}

/* TABLET LANDSCAPE */
@media (min-width: 901px) and (max-width: 1024px) {

    .logo img,
    .header-logo-img {
        height: 240px !important;
    }
}

/* TABLET PORTRAIT & MOBILE */
@media (max-width: 900px) {

    .logo img,
    .header-logo-img {
        height: 220px !important;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .logo img,
    .header-logo-img {
        height: 200px !important;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

    .logo img,
    .header-logo-img {
        height: 180px !important;
    }
}

/* STICKY EFFECT */
.main-header.sticky .logo img,
.main-header.sticky .header-logo-img {
    height: 220px !important;
    transition: var(--transition);
}

/* EN GÜÇLÜ LOGO SELECTOR - BU KESİN ÇALIŞIR */
header .main-header .nav-wrapper .nav-container .logo-container .logo img.header-logo-img,
html body header .main-header .nav-wrapper .nav-container .logo-container .logo img,
.logo>img[src*="logo"],
img.header-logo-img[alt="AZ YACHTING"] {
    height: 120px !important;
    width: auto !important;
    max-height: 120px !important;
    max-width: 280px !important;
    display: block !important;
    transform: none !important;
}

/* MAIN NAV - YAZILAR ARASI BOŞLUK ARTIRILDI */
.logo-container {
    position: relative;
    z-index: 10;
}

.main-nav {
    position: relative;
    z-index: 50;
    /* Logo'nun üzerine çıkması için z-index eklendi */
    flex: 1 1 auto;
    /* Sağa yaslama zorlamasını kaldır */
    display: flex;
    justify-content: flex-start;
    margin-left: 0;
    /* Menüyü hafif sağa kaydırdım */
    /* Logo ile menü arası boşluk */
}

.nav-container { flex-wrap: nowrap; }
.logo-container { flex: 0 0 auto; }
.nav-container .main-nav { flex: 1 1 auto !important; min-width: 0 !important; }

.mobile-close-btn {
    display: none !important;
}

.main-nav>ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    /* Yazılar arası boşluk artırıldı */
    align-items: center;
    flex-wrap: nowrap;
}

.main-nav>ul>li {
    position: relative;
    padding: 15px 0;
}

.main-nav>ul>li>a.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.9rem;
    /* Font biraz büyütüldü */
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
    padding: 8px 6px;
    /* Padding artırıldı */
    position: relative;
    white-space: nowrap;
    display: inline-block;
    min-width: max-content;
}

.main-nav>ul>li>a.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.main-nav>ul>li>a.nav-link:hover::after,
.main-nav>ul>li>a.nav-link.active::after {
    width: 100%;
}

.main-nav>ul>li>a.nav-link:hover,
.main-nav>ul>li>a.nav-link.active {
    color: var(--accent-gold);
}

.main-nav .fa-angle-down {
    font-size: 0.7rem;
    margin-left: 4px;
    opacity: 0.7;
}

/* DROPDOWN */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-radius: 4px;
    padding: 10px 0;
    list-style: none;
    border-top: 3px solid var(--accent-gold);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: var(--accent-gold);
    padding-left: 25px;
}

.main-nav .overflow-dropdown {
    display: none;
}
.main-nav .overflow-dropdown .dropdown-menu {
    min-width: 220px;
}

/* MOBILE ELEMENTS */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--header-top-bg);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
    margin-left: 10px;
}

/* RESPONSIVE BREAKPOINTS */

/* LARGE DESKTOP */
@media (min-width: 1601px) {
    .nav-container {
        padding: 0 40px;
    }

    .main-nav>ul {
        gap: 22px;
    }

    .main-nav>ul>li>a.nav-link {
        font-size: 0.92rem;
    }

    .logo img,
    .header-logo-img {
        height: 240px !important;
    }
}

/* STANDARD DESKTOP */
@media (min-width: 1501px) and (max-width: 1600px) {

    .logo img,
    .header-logo-img {
        height: 200px !important;
    }

    .main-nav>ul {
        gap: 18px;
    }

    .main-nav>ul>li>a.nav-link {
        font-size: 0.85rem;
    }
}

/* LAPTOP & MACBOOK OPTIMIZATION (1101px - 1500px) */
@media (min-width: 1101px) and (max-width: 1500px) {
    .nav-container {
        padding: 0 15px;
        /* Yan boşlukları azalttık */
    }

    .logo img,
    .header-logo-img {
        height: 200px !important;
        /* Logo küçültüldü, yer açıldı */
    }

    .main-nav {
        margin-left: 9px;
        /* Logo ile menü arası mesafe kısaldı */
        flex-shrink: 1;
        /* Menünün küçülmesine izin ver */
        width: 100%;
        /* Genişlik sorunu için */
    }

    .main-nav>ul {
        gap: 5px;
        /* Linkler arası boşluklar minimize edildi */
        justify-content: flex-end;
        /* Sığmazsa sağa yasla */
        width: 100%;
    }

    .main-nav>ul>li>a.nav-link {
        font-size: 0.7rem;
        /* Font küçültüldü */
        padding: 5px 2px;
        /* Link içi boşluklar alındı */
        white-space: nowrap;
        /* Asla alt satıra inme */
        letter-spacing: 0;
        /* Harf aralığını sıfırla */
    }

    /* Dropdown okunu küçült */
    .main-nav .fa-angle-down {
        margin-left: 1px;
        font-size: 0.6rem;
    }
}

/* REMOVED INTERMEDIATE QUERIES TO FORCE MOBILE MENU EARLIER */

/* TABLET PORTRAIT & MOBILE & SMALL LAPTOP */
/* TABLET PORTRAIT & MOBILE & SMALL LAPTOP */
@media (max-width: 1100px) {
    .mobile-menu-toggle {
        display: block;
        font-size: 2rem;
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 !important;
        justify-self: end !important;
        grid-column: 3 !important;
    }

    .nav-container {
        position: relative;
        padding: 0 12px;
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
    }

    .logo {
        flex: 0 0 auto;
    }

    .logo-container {
        margin: 0 !important;
        justify-self: center !important;
        grid-column: 2 !important;
        transform: translateX(-30px) !important;
    }

    .logo img,
    .header-logo-img {
        height: 120px !important;
        max-height: 120px !important;
        width: 180px !important;
        max-width: 180px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 1001;
        transition: var(--transition);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 0 30px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav>ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-nav>ul>li {
        padding: 0;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .main-nav>ul>li>a.nav-link {
        padding: 18px 25px;
        display: block;
        font-size: 1rem;
        width: 100%;
        font-weight: 600;
        min-width: unset;
    }

    .main-nav>ul>li>a.nav-link::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #fdfdfd;
        padding: 0;
        display: none;
        border-top: none;
        border-left: 3px solid var(--accent-gold);
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 15px 40px;
        font-size: 0.95rem;
    }

    .mobile-close-btn {
        display: block !important;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 1.8rem;
        color: var(--text-dark);
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .logo img,
    .header-logo-img {
        height: 110px !important;
        max-height: 110px !important;
        width: 170px !important;
        max-width: 170px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .top-bar {
        display: block !important;
        /* Mobilde üst barı geri getir ama sadece dil için */
        text-align: center;
        padding: 5px 0;
    }

    .top-bar .contact-info {
        display: none !important;
        /* Telefunu gizle */
    }

    .top-bar .language-switcher {
        justify-content: center;
        width: 100%;
    }

    .nav-wrapper {
        padding: 10px 0;
    }

    .main-header.sticky .logo img,
    .main-header.sticky .header-logo-img {
        height: 110px !important;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

    .logo img,
    .header-logo-img {
        height: 100px !important;
        max-height: 100px !important;
        width: 160px !important;
        max-width: 160px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .nav-container {
        padding: 0 12px;
    }

    .main-nav {
        max-width: 280px;
        padding: 90px 0 25px;
    }

    .main-nav>ul>li>a.nav-link {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 360px) {

    .logo img,
    .header-logo-img {
        height: 90px !important;
        max-height: 90px !important;
        width: 150px !important;
        max-width: 150px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .main-nav>ul>li>a.nav-link {
        padding: 16px 20px;
        font-size: 0.92rem;
    }
}

/* OVERLAY */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.main-nav.active~.nav-overlay {
    opacity: 1;
    visibility: visible;
}

/* STICKY EFFECT */
.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.4s ease forwards;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.main-header.sticky .top-bar {
    display: none;
}

.main-header.sticky .nav-wrapper {
    padding: 25px 0;
    /* Sticky padding daha da artırıldı */
}

.main-header.sticky .logo img,
.main-header.sticky .header-logo-img {
    height: 250px !important;
    /* Sticky logo boyutu artırıldı */
    transition: var(--transition);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* HOVER EFFECTS OPTIMIZATION */
@media (hover: hover) {
    .main-nav>ul>li>a.nav-link:hover {
        transform: translateY(-1px);
    }

    .dropdown-menu li a:hover {
        transform: translateX(3px);
    }
}

/* Stability overrides */
.logo-container {
    flex-shrink: 0 !important;
    position: relative;
    z-index: 10;
}
@media (min-width: 1101px) {
    .main-nav>ul {
        justify-content: center !important;
        flex-wrap: nowrap !important;
    }
}

@media (min-width: 1101px) {
    .nav-wrapper {
        padding: 8px 0 !important;
    }

    .main-header.sticky .nav-wrapper {
        padding: 6px 0 !important;
    }

    .nav-container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 16px !important;
        gap: 14px !important;
    }

    .logo-container {
        margin: 0 auto !important;
    }

    .nav-container .logo {
        margin-right: 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .logo img,
    .header-logo-img {
        height: 110px !important;
        max-height: 110px !important;
        width: 160px !important;
        max-width: 160px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .main-header.sticky .logo img,
    .main-header.sticky .header-logo-img {
        height: 95px !important;
        max-height: 95px !important;
    }

    .main-nav {
        justify-content: center !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    header .main-header .nav-wrapper .nav-container .logo-container .logo img.header-logo-img,
    html body header .main-header .nav-wrapper .nav-container .logo-container .logo img,
    .logo>img[src*="logo"],
    img.header-logo-img[alt="AZ YACHTING"] {
        height: 110px !important;
        max-height: 110px !important;
        width: 160px !important;
        max-width: 160px !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

.main-header {
    will-change: transform;
}

.main-header.sticky {
    animation: none !important;
    transform: translateY(0) !important;
    transition: transform 0.25s ease !important;
}

.main-header.sticky.sticky-hidden {
    transform: translateY(-110%) !important;
}
