/* NitroShock global Header component CSS — extracted from Oxygen code blocks
   (ct_code_block 167 + 170 in template 'Main' #7) and served as one cached file
   instead of being inlined on every page. Edit the Oxygen code block, not this file,
   if you change the header — then re-export. Generated 2026-07-01T17:46Z. */
svg {
  width: 1em;
  height: 1em;
}

.ns-social-link svg {
    width: 18px !important;
    height: 18px !important;
    display: block;
}

.nsh-mlink-name {
    padding-top: 6px!important;
}

.nsh-mlink-more .nsh-mlink-name {
    letter-spacing: 0.02em;
    color: var(--ns-yellow-primary);
    padding-top: 6px!important;
}
.nsh-mlink-more .nsh-mlink-icon {
    color: var(--ns-yellow-primary);
}
.nsh-more-arrow {
    width: 14px;
    height: 34px;
    margin-left: auto;
    color: var(--ns-yellow-primary);
    transition: transform 0.2s ease;

}
.nsh-mlink-more:hover .nsh-more-arrow {
    transform: translateX(4px);

}
.nsh-mlink-more:hover .nsh-mlink-name {
    color: var(--ns-yellow-light);
}
/* ===========================================
   NitroShock Header Component
   File: Oxygen Code Block - Header
   
   Two states controlled by body class:
     .ns-logged-out  (default / marketing)
     .ns-logged-in   (authenticated / workspace)
   
   Toggle via PHP:
     <?php echo is_user_logged_in() ? 'ns-logged-in' : 'ns-logged-out'; ?>
   =========================================== */

/* --- All colors hardcoded for maximum renderer compatibility --- */

/* --- Reset scoped to header --- */
.nsh, .nsh *, .nsh *::before, .nsh *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

.nsh {
    position: sticky;
    top: 0;
    z-index: 9999;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5e5e5;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- Inner container --- */
.nsh-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 64px;
}

/* --- Logo --- */
.nsh-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    margin-right: 28px;
    flex-shrink: 0;
    color: #e5e5e5;
}

.nsh-logo svg { color: #fbbf24; flex-shrink: 0; }

.nsh-logo span {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Desktop Nav --- */
.nsh-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.nsh-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    color: #a1a1a1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: none;
    font-family: inherit;
    line-height: 1.5;
}

.nsh-link:hover { color: #e5e5e5; background: rgba(255, 255, 255, 0.04); }
.nsh-link.is-active { color: #fbbf24; }

/* Arrow icon inside nav links */
.nsh-arrow {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.nsh-item:hover .nsh-arrow,
.nsh-item.is-open .nsh-arrow { transform: rotate(180deg); opacity: 0.8; }

/* Badge */
.nsh-badge {
    display: inline-flex;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    line-height: 1.3;
    vertical-align: middle;
}

.nsh-badge-new { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.nsh-badge-free { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.nsh-badge-plugin { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

/* --- Nav item wrapper (has dropdown) --- */
.nsh-item { position: relative; }

/* Invisible hover bridge: keeps mega menu open while mouse travels from nav link to mega panel */
.nsh-item:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20px;
    transform: translateY(100%);
}

/* Invisible hover bridge: keeps mega menu open while mouse travels from nav link to mega panel */
.nsh-item:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20px;
    transform: translateY(100%);
}

/* --- Right side --- */
.nsh-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Sign in / Start free */
.nsh-signin {
    padding: 8px 16px;
    color: #a1a1a1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.15s;
}

.nsh-signin:hover { color: #e5e5e5; }

.nsh-cta {
    padding: 8px 18px;
    background: #fbbf24;
    color: #0a0a0a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.15s, box-shadow 0.15s;
}

.nsh-cta:hover {
    background: #f59e0b;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.25);
}

/* ===========================================
   MEGA MENU (full-width)
   =========================================== */
.nsh-mega {
    position: fixed;
    left: 0; right: 0;
    top: 64px;
    background: #111111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s, visibility 0.18s;
    pointer-events: none;
}

.nsh-item:hover > .nsh-mega,
.nsh-item.is-open > .nsh-mega {
    opacity: 1; visibility: visible; pointer-events: auto;
}

.nsh-mega-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

.nsh-mega-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(4, 1fr);
}

/* Mega column heading */
.nsh-col-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b6b6b;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Mega link (with icon + desc) */
.nsh-mlink {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #e5e5e5;
    transition: background 0.12s;
    margin: 2px 0;
}

.nsh-mlink:hover { background: rgba(255, 255, 255, 0.05); }

.nsh-mlink-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fbbf24;
}

.nsh-mlink-icon svg { width: 16px; height: 16px; }
.nsh-mlink-icon.highlight { background: rgba(251, 191, 36, 0.12); }

.nsh-mlink-text { display: flex; flex-direction: column; min-width: 0; }

.nsh-mlink-name {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top:6px;
}

.nsh-mlink-desc {
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.4;
    margin-top: 2px;
}

/* Compact mega link (no icon, no desc) */
.nsh-mlink-sm {
    display: block;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    color: #a1a1a1;
    transition: color 0.12s, background 0.12s;
}

.nsh-mlink-sm:hover { color: #e5e5e5; background: rgba(255, 255, 255, 0.04); }
.nsh-mlink-sm.is-yellow { color: #fbbf24; font-weight: 500; }

/* Promo card in mega */
.nsh-promo {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    margin-top: 4px;
}

.nsh-promo-title { font-size: 13px; font-weight: 600; color: #fbbf24; margin-bottom: 4px; }

.nsh-promo-text {
    font-size: 12px;
    color: #a1a1a1;
    line-height: 1.5;
    margin-bottom: 10px;
}

.nsh-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fbbf24;
    text-decoration: none;
    transition: gap 0.2s;
}

.nsh-promo-cta:hover { gap: 8px; }
.nsh-promo-cta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Quick actions bar at mega bottom (logged-in) */
.nsh-quick-bar {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nsh-quick-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-decoration: none;
    color: #a1a1a1;
    font-size: 12px;
    font-weight: 500;
    transition: border-color 0.15s, color 0.15s;
}

.nsh-quick-link:hover { border-color: #fbbf24; color: #e5e5e5; }
.nsh-quick-link svg { width: 14px; height: 14px; color: #fbbf24; flex-shrink: 0; }

/* ===========================================
   SIMPLE DROPDOWN
   =========================================== */
.nsh-drop {
    position: absolute;
    top: 100%;
    padding-top: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s, visibility 0.18s;
    pointer-events: none;
}

/* Left-aligned by default */
.nsh-drop { left: 0; }
/* Right-aligned for avatar */
.nsh-drop.is-right { left: auto; right: 0; }

.nsh-item:hover > .nsh-drop,
.nsh-item.is-open > .nsh-drop {
    opacity: 1; visibility: visible; pointer-events: auto;
}

.nsh-drop-panel {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    min-width: 200px;
}

.nsh-drop-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #a1a1a1;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
}

.nsh-drop-link:hover { background: rgba(255, 255, 255, 0.05); color: #e5e5e5; }
.nsh-drop-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.nsh-drop-link.is-danger { color: #ef4444; }
.nsh-drop-link.is-danger:hover { background: rgba(239, 68, 68, 0.08); }

.nsh-drop-divider { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 4px 8px; }

/* ===========================================
   LOGGED-IN SPECIFIC ELEMENTS
   =========================================== */

/* Credits pill */
.nsh-credits {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    font-size: 13px;
    color: #a1a1a1;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nsh-credits:hover { border-color: #fbbf24; background: rgba(251, 191, 36, 0.06); }
.nsh-credits svg { color: #fbbf24; flex-shrink: 0; }
.nsh-credits-num { font-weight: 700; color: #fbbf24; }
.nsh-credits-lbl { color: #6b6b6b; font-size: 12px; }

.nsh-credits.is-low { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.06); }
.nsh-credits.is-low svg { color: #ef4444; }
.nsh-credits.is-low .nsh-credits-num { color: #ef4444; }

/* Vertical separator */
.nsh-sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 4px;
    flex-shrink: 0;
}

/* Notification bell */
.nsh-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #6b6b6b;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    background: none;
    border: none;
    font-family: inherit;
}

.nsh-bell:hover { color: #e5e5e5; background: rgba(255, 255, 255, 0.05); }
.nsh-bell svg { width: 18px; height: 18px; }

.nsh-bell-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 8px; height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #0a0a0a;
}

/* Avatar button */
.nsh-avatar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    background: none;
    border: none;
    font-family: inherit;
    color: #a1a1a1;
}

.nsh-avatar-btn:hover { background: rgba(255, 255, 255, 0.05); }

.nsh-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #0a0a0a;
    flex-shrink: 0;
}

/* Account info block at top of avatar dropdown */
.nsh-acct {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
}

.nsh-acct-name { font-size: 14px; font-weight: 600; color: #e5e5e5; }
.nsh-acct-email { font-size: 12px; color: #6b6b6b; margin-top: 2px; }

.nsh-acct-plan {
    display: inline-flex;
    margin-top: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

/* Project list items */
.nsh-proj {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #a1a1a1;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
}

.nsh-proj:hover { background: rgba(255, 255, 255, 0.05); color: #e5e5e5; }

.nsh-proj-ico {
    width: 20px; height: 20px;
    border-radius: 4px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: #6b6b6b;
}

.nsh-proj-ico.is-active { color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); }
.nsh-proj.is-add { color: #fbbf24; }
.nsh-proj.is-add svg { width: 14px; height: 14px; color: #fbbf24; }

/* ===========================================
   AUTH STATE VISIBILITY
   body.ns-logged-out shows .nsh-out, hides .nsh-in
   body.ns-logged-in shows .nsh-in, hides .nsh-out
   
   Uses visibility on inline-flex nav items only.
   Drawers do NOT get .nsh-out/.nsh-in - the JS
   picks the correct drawer based on body class.
   =========================================== */
.nsh .nsh-out { display: flex; }
.nsh .nsh-in  { display: none; }

body.ns-logged-in .nsh .nsh-out { display: none; }
body.ns-logged-in .nsh .nsh-in  { display: flex; }

/* ===========================================
   MOBILE HAMBURGER
   =========================================== */
.nsh-burger {
    display: none; /* hidden on desktop */
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: #a1a1a1;
    transition: color 0.15s;
    padding: 0;
    flex-shrink: 0;
}

.nsh-burger:hover { color: #e5e5e5; }
.nsh-burger svg { width: 22px; height: 22px; }
.nsh-burger .ico-close { display: none; }
.nsh-burger.is-open .ico-open { display: none; }
.nsh-burger.is-open .ico-close { display: block; }

/* ===========================================
   MOBILE DRAWER
   =========================================== */
.nsh-drawer {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0; bottom: 0;
    background: #0a0a0a;
    z-index: 9998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px 100px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e5e5e5;
    -webkit-font-smoothing: antialiased;
}

.nsh-drawer.is-open { display: block; }

/* Mobile nav links */
.nsh-m-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    color: #e5e5e5;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    width: 100%;
    font-family: inherit;
    text-align: left;
}

.nsh-m-link:last-child { border-bottom: none; }

.nsh-m-link .nsh-arrow {
    width: 14px; height: 14px;
    color: #6b6b6b;
    transition: transform 0.2s;
}

.nsh-m-link.is-open .nsh-arrow { transform: rotate(180deg); }

/* Mobile accordion panel */
.nsh-m-panel {
    display: none;
    padding: 4px 0 12px 8px;
}

.nsh-m-panel.is-open { display: block; }

.nsh-m-panel a {
    display: block;
    padding: 10px 12px;
    color: #a1a1a1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.12s, background 0.12s;
}

.nsh-m-panel a:hover { color: #e5e5e5; background: rgba(255, 255, 255, 0.04); }
.nsh-m-panel .m-heading {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b6b6b;
    padding: 12px 12px 4px;
}

/* Mobile CTA buttons */
.nsh-m-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nsh-m-cta a {
    display: block;
    padding: 14px;
    text-align: center;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.nsh-m-btn-primary {
    background: #fbbf24;
    color: #0a0a0a;
}

.nsh-m-btn-primary:hover { background: #f59e0b; }

.nsh-m-btn-secondary {
    background: #1a1a1a;
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nsh-m-btn-secondary:hover { border-color: #fbbf24; }

/* Mobile credits bar (logged-in) */
.nsh-m-credits {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 16px;
    text-decoration: none;
    color: #e5e5e5;
}

.nsh-m-credits-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.nsh-m-credits-left svg { color: #fbbf24; }
.nsh-m-credits-left strong { color: #fbbf24; }

.nsh-m-credits-add {
    font-size: 12px;
    font-weight: 600;
    color: #fbbf24;
}

/* Mobile account section */
.nsh-m-account {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nsh-m-account-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 16px;
}

.nsh-m-account a {
    display: block;
    padding: 12px 0;
    color: #a1a1a1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nsh-m-account a:hover { color: #e5e5e5; }
.nsh-m-account a.is-danger { color: #ef4444; }

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
    .nsh-nav { display: none; }
    .nsh-right { display: none; }
    .nsh-burger { display: flex; }
    .nsh-inner { gap: 0; }
}

@media (min-width: 1025px) {
    /* Must beat .nsh-drawer.is-open specificity to prevent flash on resize */
    .nsh-drawer { display: none !important; }
}
