/* ═══════════════════════════════════════════════════
   Fussion Header Plugin v3.0.0 — EXACT COLORS
   All values taken directly from index.css + tailwind.config.ts
   ═══════════════════════════════════════════════════ */

/* ── Fonts (same as the React site) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=clash-grotesk@400,500,600,700&display=swap');

/* ── Exact brand values from index.css ── */
#fh-root {
    /* Colors */
    --fh-bg:          hsl(224, 55%, 13%);    /* --background */
    --fh-fg:          hsl(80, 100%, 99%);    /* --foreground  (Powder White) */
    --fh-muted-fg:    hsl(225, 35%, 82%);    /* --muted-foreground */
    --fh-border:      hsl(230, 80%, 70%, 0.3); /* glass border from .glass rule */
    --fh-primary:     hsl(235, 100%, 65%);   /* --primary (Digital Blue) */
    --fh-primary-fg:  hsl(224, 60%, 8%);     /* --primary-foreground */

    /* Glass — exact .glass rule from index.css */
    --fh-glass-bg:    hsl(225, 55%, 22%, 0.55);
    --fh-glass-blur:  blur(18px) saturate(140%);
    --fh-glass-border:1px solid hsl(230, 80%, 70%, 0.3);

    /* CTA button — gradient-orange from index.css */
    --fh-cta-bg:      linear-gradient(135deg, hsl(235,100%,70%), hsl(230,100%,60%) 60%, hsl(225,80%,50%));
    /* CTA glow — shadow-glow from index.css */
    --fh-cta-glow:    0 0 60px hsl(235,100%,70%,0.55), 0 0 120px hsl(235,100%,70%,0.28);

    /* Lang active pill = primary */
    --fh-lang-active-bg: hsl(235, 100%, 65%);
    --fh-lang-active-fg: hsl(224, 60%, 8%);

    /* Fonts */
    --fh-font:        'Clash Grotesk', 'Inter', system-ui, sans-serif;
}

/* ── Reset scoped to plugin ── */
#fh-root,
#fh-root * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: normal;
}

/* ── Root wrapper ── */
#fh-root {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 16px 16px 0;
    font-family: var(--fh-font) !important;
    pointer-events: none;
}

#fh-root header,
#fh-root nav,
#fh-root #fh-panel {
    pointer-events: auto;
}

/* ══════════════════════════════════════════
   RESPONSIVE SHOW/HIDE
══════════════════════════════════════════ */
#fh-desktop { display: none; }
#fh-mobile  { display: block; }

@media (min-width: 768px) {
    #fh-desktop { display: block; }
    #fh-mobile  { display: none !important; }
    #fh-panel   { display: none !important; }
}

/* ══════════════════════════════════════════
   SHARED NAV PILL
══════════════════════════════════════════ */
#fh-desktop-nav,
#fh-mobile-nav {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    max-width: 1152px;
    margin: 0 auto;
    border-radius: 9999px;
    padding: 12px 20px;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: background 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
    gap: 16px;
}

/* Scrolled = .glass from index.css */
#fh-desktop-nav.fh-scrolled,
#fh-mobile-nav.fh-scrolled {
    background: hsl(225, 55%, 22%, 0.55) !important;
    backdrop-filter: blur(18px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
    border-color: hsl(230, 80%, 70%, 0.3) !important;
    box-shadow: 0 10px 40px -10px hsl(224, 60%, 5%, 0.85) !important;
}

/* ── Logo ── */
.fh-logo-wrap {
    display: inline-flex !important;
    align-items: center;
    text-decoration: none !important;
    flex-shrink: 0;
}
.fh-logo {
    height: 40px !important;
    width: auto !important;
    display: block !important;
    max-width: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: none !important;
}

/* ══════════════════════════════════════════
   DESKTOP NAV LIST
══════════════════════════════════════════ */
#fh-desktop-list {
    display: flex !important;
    align-items: center;
    gap: 24px;
    list-style: none !important;
    flex: 1;
    justify-content: center;
}

.fh-item {
    position: relative;
    list-style: none !important;
}

.fh-link {
    font-size: 14px !important;
    font-family: var(--fh-font) !important;
    color: hsl(225, 35%, 82%) !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    white-space: nowrap;
    transition: color 0.2s;
}
.fh-link:hover { color: hsl(80, 100%, 99%) !important; }

.fh-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    font-size: 14px !important;
    font-family: var(--fh-font) !important;
    color: hsl(225, 35%, 82%) !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    font-weight: 400 !important;
    white-space: nowrap;
    transition: color 0.2s;
    box-shadow: none !important;
}
.fh-btn:hover { color: hsl(80, 100%, 99%) !important; }

.fh-chev {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s;
    stroke: currentColor;
    overflow: visible;
}
.fh-btn[aria-expanded="true"] .fh-chev,
.fh-m-gbtn[aria-expanded="true"] .fh-chev {
    transform: rotate(180deg);
}

/* Dropdown panel — glass */
.fh-dd {
    display: none;
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%);
    min-width: 200px;
    border-radius: 16px;
    background: hsl(225, 55%, 22%, 0.72) !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid hsl(230, 80%, 70%, 0.3) !important;
    padding: 8px;
    box-shadow: 0 30px 80px -20px hsl(224, 60%, 5%, 0.85) !important;
    z-index: 100000;
    animation: fh-fadein 0.15s ease;
}
.fh-dd.fh-open { display: block; }

.fh-dd-link {
    display: block !important;
    border-radius: 12px;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-family: var(--fh-font) !important;
    color: hsl(225, 35%, 82%) !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.fh-dd-link:hover {
    background: hsl(235, 100%, 65%, 0.12) !important;
    color: hsl(80, 100%, 99%) !important;
}

/* ── Actions (lang + CTA) ── */
.fh-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Language switcher */
.fh-lang {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    border-radius: 9999px;
    border: 1px solid hsl(230, 50%, 38%, 0.6) !important;
    padding: 2px 4px;
    background: none !important;
}
.fh-lang-btn {
    padding: 4px 10px !important;
    font-size: 11px !important;
    font-family: 'Roboto', monospace !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 9999px;
    text-decoration: none !important;
    color: hsl(225, 35%, 82%) !important;
    background: none !important;
    border: none !important;
    font-weight: 500 !important;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}
.fh-lang-btn:hover { color: hsl(80, 100%, 99%) !important; }
.fh-lang-on {
    background: hsl(235, 100%, 65%) !important;
    color: hsl(224, 60%, 8%) !important;
}
.fh-lang-on:hover { color: hsl(224, 60%, 8%) !important; }

/* CTA — gradient-orange + glow-orange from index.css */
.fh-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border-radius: 9999px;
    background: linear-gradient(135deg, hsl(235,100%,70%), hsl(230,100%,60%) 60%, hsl(225,80%,50%)) !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
    font-family: var(--fh-font) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap;
    border: none !important;
    /* glow-orange = shadow-glow */
    box-shadow: 0 0 60px hsl(235,100%,70%,0.55), 0 0 120px hsl(235,100%,70%,0.28) !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fh-cta:hover {
    transform: scale(1.05);
    color: #ffffff !important;
}

/* ══════════════════════════════════════════
   MOBILE NAV
══════════════════════════════════════════ */

#fh-mobile-nav {
    justify-content: space-between;
}

/* Mobile toggle button — glass */
#fh-toggle {
    border-radius: 9999px !important;
    background: hsl(225, 55%, 22%, 0.55) !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid hsl(230, 80%, 70%, 0.3) !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-family: var(--fh-font) !important;
    color: hsl(80, 100%, 99%) !important;
    cursor: pointer;
    font-weight: 400 !important;
    box-shadow: none !important;
    line-height: 1.4;
    transition: background 0.2s;
}

/* Mobile panel — glass (rounded-3xl = 24px) */
#fh-panel {
    display: none;
    max-width: 1152px;
    margin: 8px auto 0;
    border-radius: 24px;
    background: hsl(225, 55%, 22%, 0.72) !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid hsl(230, 80%, 70%, 0.3) !important;
    padding: 16px;
    animation: fh-fadein 0.2s ease;
    pointer-events: auto;
}
#fh-panel.fh-open { display: block; }

#fh-mobile-list {
    list-style: none !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fh-m-item {
    list-style: none !important;
}

.fh-m-link {
    display: block !important;
    padding: 8px 0 !important;
    font-size: 16px !important;
    font-family: var(--fh-font) !important;
    color: hsl(80, 100%, 99%) !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    background: none !important;
    border: none !important;
    transition: color 0.15s;
}
.fh-m-link:hover { color: hsl(235, 100%, 65%) !important; }

.fh-m-gbtn {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 !important;
    font-size: 16px !important;
    font-family: var(--fh-font) !important;
    color: hsl(80, 100%, 99%) !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-weight: 400 !important;
    box-shadow: none !important;
    text-align: left;
}
.fh-m-gbtn .fh-chev { width: 16px; height: 16px; }

/* Mobile sub-items — border-l border-border */
.fh-m-grp {
    display: none;
    margin-left: 12px;
    border-left: 1px solid hsl(230, 50%, 38%) !important;
    padding-left: 12px;
    padding-top: 4px;
    padding-bottom: 4px;
}
.fh-m-grp.fh-open { display: block; }

.fh-m-sublink {
    display: block !important;
    padding: 6px 0 !important;
    font-size: 14px !important;
    font-family: var(--fh-font) !important;
    color: hsl(225, 35%, 82%) !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    background: none !important;
    border: none !important;
    transition: color 0.15s;
}
.fh-m-sublink:hover { color: hsl(80, 100%, 99%) !important; }

/* Mobile footer row */
.fh-m-foot {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px !important;
    border-top: 1px solid hsl(230, 50%, 38%) !important;
    margin-top: 8px;
    list-style: none !important;
}

/* ── Animation ── */
@keyframes fh-fadein {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
