/* ── Unified site header shell (landing + app + admin) ── */

.site-header-shell {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 72px;
    background-color: #000;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

.site-header-shell__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.45) 55%,
        rgba(0, 0, 0, 0.78) 100%
    );
    pointer-events: none;
}

.site-header-shell__stripe {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37 20%, #f0cf67 50%, #d4af37 80%, transparent);
    z-index: 2;
    pointer-events: none;
}

.site-header-shell__inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 10px 0;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

.site-header-shell__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.site-header-shell__leading {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}

.site-header-shell__brand img {
    height: 38px;
    width: auto;
    background: transparent;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.site-header-shell__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f0cf67;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.25);
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.site-header-shell__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.site-header-shell__toggle .icon {
    width: 20px;
    height: 20px;
}

.site-header-shell__toggle .icon-close {
    display: none;
}

.site-header-shell__toggle[aria-expanded="true"] .icon-menu {
    display: none;
}

.site-header-shell__toggle[aria-expanded="true"] .icon-close {
    display: block;
}

.site-header-shell__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-header-shell.is-scrolled {
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.5);
}

/* Legacy aliases */
.app-site-header,
.admin-site-header,
.site-header {
    /* extended by page-specific CSS */
}

.app-site-header .site-header-shell__inner,
.admin-site-header .site-header-shell__inner {
    /* shared inner */
}

@media (max-width: 768px) {
    .site-header-shell {
        min-height: 64px;
    }

    .site-header-shell__inner {
        min-height: 64px;
        padding: 8px 0;
        padding-top: calc(8px + env(safe-area-inset-top, 0px));
    }

    .site-header-shell__brand img {
        height: 32px;
    }

    .site-header-shell__title {
        display: none;
    }

    .site-header-shell__toggle {
        display: flex;
    }
}
