/* header.blade.php içinden taşındı [26.11.2026] */
/* ============================================
   HEADER NAV LINK PROTECTION
   Only hover uses !important to avoid conflicts
   with Tailwind utilities and Alpine.js states
   ============================================ */
header *, header *::before, header *::after {
    max-width: none;
}
header img {
    max-width: 100%;
}

.nav-menu-link {
    text-decoration: none;
}
.nav-menu-link:hover {
    color: #0066CC !important;
    background-color: #e6f2ff !important;
    text-decoration: none !important;
}
.nav-menu-link:hover svg {
    color: #0066CC !important;
}

@media (min-width: 1024px) {
    #main-navigation .menu-item-wrapper {
        flex-shrink: 0;
    }
}

/* Hamburger Icon Animation */
.hamburger-icon {
    position: relative;
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    height: 2.5px;
    width: 100%;
    background-color: #374151;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.hamburger-icon.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-icon.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-icon.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu Styles */
.mobile-menu-item {
    position: relative;
}

/* Smooth collapse animation */
[x-collapse] {
    transition: height 0.3s ease-out;
}

/* Mobile Menu Scrollbar */
@media (max-width: 1023px) {
    .fixed.right-0.top-0.h-full {
        scrollbar-width: thin;
        scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
    }
    
    .fixed.right-0.top-0.h-full::-webkit-scrollbar {
        width: 6px;
    }
    
    .fixed.right-0.top-0.h-full::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .fixed.right-0.top-0.h-full::-webkit-scrollbar-thumb {
        background-color: rgba(156, 163, 175, 0.5);
        border-radius: 3px;
    }
    
    .fixed.right-0.top-0.h-full::-webkit-scrollbar-thumb:hover {
        background-color: rgba(156, 163, 175, 0.7);
    }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #0066CC;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================================
   HEADER COMPACT SPACING OVERRIDES (build-independent)
   Keeps production header identical to local compact layout
   ========================================================== */
/* 🔴 04.11.2026 seçici .ts-topstrip'e taşındı — üst şerit sınıfı
   slate gradyandan kurumsal lacivert sınıfına geçti, eski seçici artık eşleşmiyordu
   ve üst şeridin 38px sıkı yüksekliği kaybolacaktı. */
.ts-topstrip .container > .flex.items-center.justify-between {
    height: 38px !important;
}

#main-navigation .nav-menu-link {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

#main-navigation .nav-menu-link {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

@media (min-width: 1280px) {
    #main-navigation .nav-menu-link {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* 1280px altı desktop: nav alanı sıkışırken sağ tarafta boşluk kalmasın */
@media (min-width: 1024px) and (max-width: 1279px) {
    #main-navigation .container > .flex.items-center.justify-between {
        gap: 8px;
    }

    #main-navigation nav.hidden.lg\:flex {
        justify-content: flex-start !important;
        gap: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        min-width: 0;
    }

    #main-navigation .nav-menu-link {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 14px !important;
    }

    #main-navigation .flex.shrink-0.items-center.gap-2.lg\:gap-3 {
        gap: 6px !important;
    }
}

[dir="rtl"] .tatilpro-header-account-popover,html[lang="ar"] .tatilpro-header-account-popover{right:auto !important;left:0 !important;}
[dir="rtl"] .tatilpro-header-account-popover,html[lang="ar"] .tatilpro-header-account-popover{right:auto !important;left:0 !important;}
.tatilpro-header-account-popover{
    width:250px !important;
    max-height:calc(100vh - 110px) !important;
    overflow-y:auto !important;
    border-radius:12px !important;
    box-shadow:0 10px 34px rgba(0,20,50,.16) !important;
}
/* üst kimlik bloğu */
.tatilpro-header-account-popover .px-4.py-3{ padding:11px 14px !important; }
.tatilpro-header-account-popover .w-10.h-10{ width:34px !important; height:34px !important; }
.tatilpro-header-account-popover .px-4.py-3 p:first-child{ font-size:13.5px !important; line-height:1.25 !important; }
.tatilpro-header-account-popover .px-4.py-3 p:last-child{
    font-size:11.5px !important; line-height:1.3 !important;
    word-break:break-all !important;   /* uzun e-posta 3 satira bolunuyordu */
}
/* satirlar */
.tatilpro-header-account-popover .py-2{ padding-top:4px !important; padding-bottom:4px !important; }
.tatilpro-header-account-popover .py-1{ padding-top:2px !important; padding-bottom:2px !important; }
/* 🔴 button[type="submit"] YETMIYOR: "Destek" satiri type="button"
   oldugu icin kurala girmiyor, tek basina buyuk kaliyordu. Tum butonlar. */
.tatilpro-header-account-popover a,
.tatilpro-header-account-popover button{
    padding:6px 14px !important; gap:10px !important;
    font-size:13.5px !important; line-height:1.3 !important;
}
.tatilpro-header-account-popover .w-8.h-8{ width:25px !important; height:25px !important; flex:none !important; }
.tatilpro-header-account-popover svg.h-4{ width:13px !important; height:13px !important; }
.tatilpro-header-account-popover a span,
.tatilpro-header-account-popover button span{ font-size:13.5px !important; line-height:1.3 !important; }
/* bildirim rozeti */
.tatilpro-header-account-popover .bg-red-500,
.tatilpro-header-account-popover [class*="rounded-full"][class*="bg-red"]{
    font-size:10.5px !important; padding:1px 6px !important;
}
