/* =============================================
   EKET Fuarcılık - Detail Page Header Styles
   ============================================= */

/* Detail Page Body */
.detail-page {
    padding-top: 0;
}

/* =============================================
   Detail Header
   ============================================= */

.detail-header {
    position: relative;
    z-index: 1000;
}

/* Top Bar - İnce */
.detail-top-bar {
    background-color: var(--primary-color);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-top-bar .top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-top-bar .top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-top-bar .top-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-top-bar .top-contact:hover {
    color: #fff;
}

.detail-top-bar .top-contact i {
    font-size: 0.6875rem;
    color: var(--secondary-color);
}

.detail-top-bar .top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-top-bar .top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.6875rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.detail-top-bar .top-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.detail-top-bar .top-link i {
    font-size: 0.625rem;
}

.detail-top-bar .top-link-unitercih {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    color: #fff;
}

.detail-top-bar .top-link-unitercih:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 8px;
}

/* Mobile lang switcher - .mobile-controls içinde, aşağıda tanımlı */
.mobile-lang-switcher .lang-dropdown {
    right: 0;
    left: auto;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-current .fi {
    font-size: 14px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-current .lang-name {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-current i {
    font-size: 0.5rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.lang-switcher:hover .lang-current i,
.lang-switcher.open .lang-current i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1000;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--gray-700);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    background: #fff;
}

.lang-option:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

.lang-option .fi {
    font-size: 16px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Main Navigation - Daha kısa */
.detail-nav {
    background-color: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
    overflow: visible;
}

.detail-nav .nav-content {
    display: flex;
    align-items: center;
    padding: 0;
    min-height: 60px;
    position: relative;
}

/* CTA butonu */
.detail-nav .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-left: auto;
}

.detail-nav .main-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-nav .header-cta-btn {
    flex-shrink: 0;
}

.detail-nav .logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 0 !important;
}

.detail-nav .logo a {
    display: flex;
    align-items: center;
}

.detail-nav .logo-img {
    height: 40px;
    width: auto;
    transition: height 0.3s ease;
}

/* Main Menu */
.detail-nav .main-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-nav .menu-item {
    position: relative;
}

.detail-nav .menu-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 20px 16px;
    color: var(--gray-700);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.detail-nav .menu-item > a:hover {
    color: var(--secondary-color);
}

.detail-nav .menu-item > a i {
    font-size: 0.625rem;
    transition: transform 0.3s ease;
}

.detail-nav .menu-item:hover > a i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.detail-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.detail-nav .menu-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.detail-nav .dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.detail-nav .dropdown-menu li a:hover {
    background-color: var(--gray-50);
    color: var(--secondary-color);
    padding-left: 25px;
}

/* Mega Menu & Submenu */
.detail-nav .dropdown-menu.mega-menu {
    min-width: 260px;
}

.detail-nav .dropdown-menu .has-submenu {
    position: relative;
}

.detail-nav .dropdown-menu .has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-nav .dropdown-menu .has-submenu > a i {
    font-size: 0.625rem;
    opacity: 0.5;
}

.detail-nav .submenu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    background-color: #fff;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.detail-nav .dropdown-menu .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.detail-nav .submenu li a {
    display: block;
    padding: 10px 20px;
    color: var(--gray-600);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.detail-nav .submenu li a:hover {
    background-color: var(--gray-50);
    color: var(--secondary-color);
    padding-left: 25px;
}

/* Header CTA Button */
.header-cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.header-cta-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(227, 41, 42, 0.3);
}

.header-cta-btn i {
    font-size: 0.75rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--gray-700, #374151);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =============================================
   Page Banner - Kompakt
   ============================================= */

.page-banner {
    position: relative;
    padding: 35px 0;
    overflow: hidden;
}

.page-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 31, 66, 0.95) 0%, rgba(30, 58, 95, 0.9) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.5625rem;
}

.breadcrumb .current {
    color: var(--secondary-color);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Page Title */
.page-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Content Area */
.main-content {
    padding: 60px 0;
    min-height: 400px;
}

/* =============================================
   Mobile Controls (dil + hamburger grubu)
   ============================================= */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 8px;
}

/* Mobile Lang Switcher */
.mobile-lang-switcher {
    display: none;
}

.mobile-lang-switcher .lang-current {
    background: rgba(8,31,66,0.07);
    border: 1px solid rgba(8,31,66,0.18);
    border-radius: 20px;
    padding: 5px 10px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.75rem;
}

.mobile-lang-switcher .lang-current i {
    font-size: 0.5rem;
    opacity: 0.7;
}

/* =============================================
   Mobile Nav Panel - Tamamen bağımsız yapı
   ============================================= */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 99998;
    overflow-y: auto;
    padding: 70px 0 30px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    pointer-events: none;
}

.mobile-nav-panel.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mnav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mnav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--gray-800, #1a202c);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.mnav-link i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
    color: var(--gray-400, #a0aec0);
}

.mnav-item.is-open > .mnav-link i {
    transform: rotate(180deg);
}

.mnav-sub {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 8px 0;
    background: #f8fafc;
}

.mnav-item.is-open > .mnav-sub {
    display: block;
}

.mnav-sub li a {
    display: block;
    padding: 12px 20px 12px 36px;
    color: var(--gray-600, #4a5568);
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid #edf2f7;
}

.mnav-sub li:last-child a {
    border-bottom: none;
}

.mnav-sub li a:hover {
    color: var(--secondary-color);
    background: #edf2f7;
}

.mnav-cta {
    padding: 20px;
    border-bottom: none;
}

.mnav-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hamburger aktif animasyonu */
.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99997;
}

.mobile-nav-overlay.is-open {
    display: block;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1199px) {
    .detail-nav .menu-item > a {
        padding: 20px 10px;
        font-size: 0.75rem;
    }
    .header-cta-btn {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
}

@media (max-width: 991px) {
    /* Top bar gizle */
    .detail-top-bar { display: none; }

    /* Desktop nav-right gizle */
    .detail-nav .nav-right { display: none; }

    /* Mobile controls göster */
    .mobile-controls { display: flex; }
    .mobile-lang-switcher { display: flex; }

    /* Mobile panel - her zaman DOM'da, transform ile gizli/açık */

    /* Nav yüksekliği */
    .detail-nav .nav-content { min-height: 55px; }
    .detail-nav .logo-img { height: 35px; }

    /* Page banner */
    .page-banner { padding: 30px 0; }
    .page-title { font-size: 1.75rem; }
    .page-subtitle { font-size: 0.875rem; }
}

@media (max-width: 576px) {
    .page-banner { padding: 25px 0; }
    .page-title { font-size: 1.5rem; }
    .breadcrumb a, .breadcrumb .current { font-size: 0.75rem; }
    .main-content { padding: 30px 0; }
}

/* =============================================
   RTL (Arapça) Desteği
   ============================================= */

[dir="rtl"] .detail-top-bar .top-bar-left,
[dir="rtl"] .detail-top-bar .top-bar-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .detail-nav .nav-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .detail-nav .nav-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .detail-nav .main-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .detail-nav .dropdown-menu {
    left: auto;
    right: 0;
    text-align: right;
}

[dir="rtl"] .breadcrumb {
    flex-direction: row-reverse;
}

[dir="rtl"] .breadcrumb .separator i {
    transform: rotate(180deg);
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-dropdown::before {
    right: auto;
    left: 16px;
}

[dir="rtl"] .detail-nav .submenu {
    left: auto;
    right: 100%;
    border-radius: 8px 0 0 8px;
    transform: translateX(10px);
}

[dir="rtl"] .detail-nav .dropdown-menu .has-submenu:hover .submenu {
    transform: translateX(0);
}

[dir="rtl"] .detail-nav .dropdown-menu .has-submenu > a i {
    transform: rotate(180deg);
}
