/* ============================================
   FunilMaker Header Template
   Standalone CSS — outside Tailwind pipeline
   ============================================ */

body.fm-has-header {
    padding-top: 64px;
}

/* When WP admin bar is visible, offset header and body padding */
body.admin-bar.fm-has-header {
    padding-top: 96px; /* 32px admin bar + 64px header */
}

body.admin-bar .fm-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar.fm-has-header {
        padding-top: 110px; /* 46px admin bar + 64px header */
    }

    body.admin-bar .fm-header {
        top: 46px;
    }
}

/* ---------- Header bar ---------- */
.fm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    background: rgba(10, 10, 11, 0.70);
    border-bottom: 1px solid rgba(39, 39, 42, 0.6);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    font-family: 'Aspekta', 'Inter', system-ui, -apple-system, sans-serif;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Subtle top-edge highlight for depth */
.fm-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 65, 19, 0.15) 30%,
        rgba(255, 141, 19, 0.10) 70%,
        transparent 100%
    );
    pointer-events: none;
}

/* ---------- Logo ---------- */
.fm-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.fm-header__logo img {
    height: 26px;
    width: auto;
    opacity: 0.92;
    transition: opacity 0.25s ease;
}

.fm-header__logo:hover img {
    opacity: 1;
}

/* ---------- Navigation ---------- */
.fm-header__nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fm-header__nav li {
    margin: 0;
    padding: 0;
}

.fm-header__nav a {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0.875rem;
    color: #A1A1AA;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.fm-header__nav a:hover {
    color: #FAFAFA;
    background-color: rgba(255, 255, 255, 0.06);
}

/* Active / current page */
.fm-header__nav .current-menu-item a,
.fm-header__nav .current_page_item a {
    color: #FAFAFA;
}

.fm-header__nav .current-menu-item a::after,
.fm-header__nav .current_page_item a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, #FF4113, #FF8D13);
    opacity: 0.9;
}

/* ---------- Credits badge ---------- */
.fm-header__credits {
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.fm-header__credits .fm-credits-badge {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 5px 12px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    backdrop-filter: blur(8px);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .fm-header {
        padding: 0 1rem;
    }

    .fm-header__logo img {
        height: 22px;
    }

    .fm-header__nav ul {
        gap: 0;
    }

    .fm-header__nav a {
        font-size: 12.5px;
        padding: 0.5rem 0.625rem;
    }
}
