/* =========================================================
   ESPAGLOBAL - HEADER 7 (PREMIUM LUXE)
========================================================= */

.espa-header-7 {
    position: sticky;
    top: 0;
    z-index: 1040;
    width: 100%;
    font-family: var(--font-family-base);
    color: var(--espa-heading);
    transition: all 0.3s ease;
}

/* =========================================================
   TOP BAR (Dark & Elegant)
========================================================= */
.espa-header-7__top {
    position: relative;
    z-index: 30;
    background: #0B132B; /* Premium Dark Navy */
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.espa-header-7__top-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.espa-header-7__socials {
    display: flex;
    gap: 8px;
}

.espa-header-7__social {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.espa-header-7__social:hover {
    color: #fff;
    transform: translateY(-2px);
}

.espa-header-7__top-contact {
    display: flex;
    gap: 20px;
}
.espa-header-7__top-contact-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.espa-header-7__top-contact-link iconify-icon {
    font-size: 14px;
    color: var(--espa-primary);
}
.espa-header-7__top-contact-link:hover {
    color: #fff;
}

/* =========================================================
   MAIN HEADER (Floating / Stuck State)
========================================================= */
.espa-header-7__main {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.espa-header-7.is-scrolled .espa-header-7__main {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.espa-header-7__main-inner {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: min-height 0.3s ease;
}

.espa-header-7.is-scrolled .espa-header-7__main-inner {
    min-height: 70px;
}

.espa-header-7__logo img {
    max-width: 200px;
    max-height: 70px;
    transition: transform 0.3s ease;
}

/* =========================================================
   NAV LINKS (Pill Hover)
========================================================= */
.espa-header-7__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.espa-header-7__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 100px;
    color: var(--espa-heading);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.espa-header-7__nav-link:hover,
.espa-menu-parent:focus-within > .espa-header-7__nav-link,
.espa-menu-parent:hover > .espa-header-7__nav-link {
    background: color-mix(in srgb, var(--espa-primary) 8%, transparent);
    color: var(--espa-primary);
}

.espa-header-7__nav-caret {
    font-size: 12px;
    opacity: 0.6;
    transition: transform 0.3s ease;
}
.espa-menu-parent:hover .espa-header-7__nav-caret {
    transform: rotate(180deg);
}

/* =========================================================
   ACTIONS (Premium CTA)
========================================================= */
.espa-header-7__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.espa-header-7__callme {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 100px;
    background: var(--espa-surface-secondary, #f8fafc);
    color: var(--espa-heading);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.espa-header-7__callme iconify-icon {
    font-size: 16px;
    color: var(--espa-primary);
}
.espa-header-7__callme:hover {
    background: color-mix(in srgb, var(--espa-primary) 10%, transparent);
}

.espa-header-7__login {
    font-size: 14px;
    font-weight: 600;
    color: var(--espa-heading);
    padding: 10px 14px;
    border-radius: 100px;
    transition: color 0.2s ease;
}
.espa-header-7__login:hover {
    color: var(--espa-primary);
    background: var(--espa-surface-secondary);
}

.espa-header-7__register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 100px;
    background: var(--espa-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--espa-primary) 30%, transparent);
    transition: all 0.3s ease;
}
.espa-header-7__register:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--espa-primary) 45%, transparent);
    color: #fff;
}

/* =========================================================
   MEGA MENU & DROPDOWNS (Glassmorphism + Bitişik Tasarım)
========================================================= */
.espa-menu-parent {
    position: relative;
}
.espa-menu-parent--mega {
    position: static;
}

.espa-simple-dropdown,
.espa-mega {
    position: absolute;
    top: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.espa-menu-parent:hover > .espa-simple-dropdown,
.espa-menu-parent:hover > .espa-mega,
.espa-menu-parent.is-menu-open > .espa-simple-dropdown,
.espa-menu-parent.is-menu-open > .espa-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Köprü (Hover kopmaması için) */
.espa-simple-dropdown::before,
.espa-mega::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.espa-simple-dropdown {
    left: 0;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    margin-top: 0;
}

.espa-mega {
    left: 0;
    width: 100%;
}
.espa-mega__surface {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0,0,0,0.04);
    border-top: none;
    border-radius: 0 0 24px 24px;
    padding: 34px 40px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.08);
    margin-top: 0;
}

/* Alt menü linkleri (Simple) */
.espa-simple-dropdown__link {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--espa-heading);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.espa-simple-dropdown__link:hover {
    background: color-mix(in srgb, var(--espa-primary) 6%, transparent);
    color: var(--espa-primary);
}

/* =========================================================
   STRUCTURAL MEGA CSS (Kompakt Kenar Çubuğu Düzeni)
========================================================= */
.espa-mega-columns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
.espa-mega-columns-image { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.espa-mega-columns-image__links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

/* Sidebar Layout Genişliği */
.espa-sidebar-layout { display: grid; grid-template-columns: 230px 1fr; min-height: 270px; }
.espa-sidebar-layout.has-media { grid-template-columns: 230px 1fr 340px; }

/* Menü İçi Tipografi Geliştirmeleri */
.espa-mega-column__title,
.espa-sidebar-group__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--espa-heading);
}

.espa-mega-column__links a,
.espa-sidebar-group__links a {
    display: block;
    padding: 6px 0;
    color: var(--espa-text, #4b5563);
    font-size: 13px;
    transition: color 0.2s ease;
}
.espa-mega-column__links a:hover,
.espa-sidebar-group__links a:hover {
    color: var(--espa-primary);
    transform: translateX(4px);
}

/* Sidebar Kategorileri (Sol Taraf) */
.espa-sidebar-layout__categories {
    border-right: 1px solid rgba(0,0,0,0.04);
    padding-right: 16px;
}

.espa-sidebar-category {
    width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
    background: transparent;
    border: none;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--espa-heading);
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.espa-sidebar-category.is-active,
.espa-sidebar-category:hover {
    background: color-mix(in srgb, var(--espa-primary) 6%, transparent);
    color: var(--espa-primary);
}

/* Kategori İkon Kutusu */
.espa-sidebar-category__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    color: var(--espa-text);
    transition: color 0.2s ease;
}

.espa-sidebar-category.is-active .espa-sidebar-category__icon,
.espa-sidebar-category:hover .espa-sidebar-category__icon {
    color: var(--espa-primary);
}

/* Yazı ve Ok Hizalaması */
.espa-sidebar-category__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    padding-top: 1px;
}

.espa-sidebar-category__arrow {
    font-size: 14px;
    opacity: 0.4;
    justify-self: end;
}

/* Sidebar İçerik Geçişi */
.espa-sidebar-pane { display: none; animation: fadePane 0.3s ease; }
.espa-sidebar-pane.is-active { display: block; }
@keyframes fadePane { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Sidebar Gruplar (Sağ Taraf) */
.espa-sidebar-groups { display: grid; gap: 24px; }
.espa-sidebar-layout:not(.has-media) .espa-sidebar-groups { grid-template-columns: repeat(4, 1fr); }
.espa-sidebar-layout.has-media .espa-sidebar-groups { grid-template-columns: repeat(3, 1fr); }

/* Mega İçi Görseller */
.espa-sidebar-group__image img,
.espa-sidebar-media-card img,
.espa-mega-image img {
    border-radius: 16px;
    transition: transform 0.4s ease;
}
.espa-sidebar-group__image:hover img,
.espa-sidebar-media-card:hover img,
.espa-mega-image:hover img {
    transform: scale(1.05);
}

/* =========================================================
   ACCOUNT DROPDOWN
========================================================= */
.espa-header-7__account-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 100px;
    border: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    transition: all 0.2s ease;
}
.espa-header-7__account-trigger:hover {
    border-color: var(--espa-primary);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--espa-primary) 15%, transparent);
}
.espa-header-7__account-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--espa-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.espa-header-7__account-menu {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 12px;
}
.espa-header-7__account-menu-link {
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 13px;
}
.espa-header-7__account-menu-link:hover {
    background: color-mix(in srgb, var(--espa-primary) 8%, transparent);
    color: var(--espa-primary);
}

/* =========================================================
   MOBILE
========================================================= */
.espa-header-7__mobile-trigger {
    display: none;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--espa-heading);
}

@media (max-width: 991.98px) {
    .espa-header-7__top { display: none; }
    .espa-header-7__nav, .espa-header-7__login, .espa-header-7__register, .espa-header-7__callme, .espa-header-7__account { display: none !important; }
    .espa-header-7__mobile-trigger { display: block; }
    .espa-mega, .espa-simple-dropdown { display: none !important; }

    .espa-header-7__main-inner {
        min-height: 70px !important;
    }
}

.espa-header-7__mobile-menu {
    width: 100% !important;
    max-width: 400px;
    border-radius: 24px 0 0 24px; /* iOS stili modal kenarı */
}
.espa-header-7__mobile-head {
    padding: 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.espa-header-7__mobile-close {
    background: var(--espa-surface-secondary);
    border: none; border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
}
.espa-mobile-menu-link {
    border-bottom: 1px solid rgba(0,0,0,0.04) !important;
    padding: 16px 8px !important;
    font-weight: 700 !important;
}
/* ESPAVEL B2C / EspaGlobal / Header 7 - Iconify menu icons */
/* Sadece menu ikonlarini duzenler; nav, dropdown ve mega menu davranislari degismez. */

.espa-header-7 .espa-header-7__nav-link > iconify-icon:not(.espa-header-7__nav-caret) {
    display: inline-block;
    font-size: 1.12em;
    line-height: 1;
    vertical-align: -0.12em;
    margin-inline-end: 0.28em;
    flex: 0 0 auto;
    color: inherit;
}

.espa-header-7 .espa-mobile-menu-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    min-width: 1.25em;
    height: 1.25em;
    font-size: 1.08em;
    line-height: 1;
    flex: 0 0 auto;
    color: inherit;
}

.espa-header-7 .espa-sidebar-category__icon iconify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15em;
    line-height: 1;
}
