﻿/* ───────── ROOT ───────────────────────────────────────────── */
:root {
    /* Grounds — cool near-black with a faint indigo bias (chosen, not pure grey) */
    --bg: #0b0b12;
    --bg2: #13131d;
    --bg3: #1b1b28;
    --surface: #13131d;
    --surface-2: #1b1b28;
    --line: #262636;
    --line-strong: #33334a;

    /* Text */
    --fg: #f2f1f7;
    --weak: #a7a5bd;
    --faint: #6f6d86;

    /* One disciplined accent (electric indigo) + restrained cyan secondary */
    --accent: #7c5cff;
    --accent-ink: #ffffff;
    --accent-soft: #9d86ff;
    --accent2: #35d0e8;

    /* Semantic (separate from the accent) */
    --good: #34d399;
    --warn: #fbbf24;
    --bad: #f87171;

    /* Rarity — muted, used as accents/borders not full neon fills */
    --r-common: #8a93a6;
    --r-rare: #4aa3ff;
    --r-epic: #b57bff;
    --r-legendary: #f5b23c;

    --radius: 14px;
    --radius-sm: 10px;
    --fade: 0.4s;
    font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
}

html, body {
    margin: 0;
    height: 100%;
    background: var(--bg);
    color: var(--fg);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    animation: fadeIn var(--fade) ease
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* ───────── NAV ────────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #000c;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #222;
}

    /* single restrained accent hairline instead of the animated rainbow overlay */
    nav::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
        opacity: .5;
        pointer-events: none;
    }

nav img {
    width: 42px;
    height: 42px
}

nav a {
    font-weight: 600;
    font-size: .93rem;
    text-decoration: none;
    transition: .2s
}

    nav a:hover {
        color: var(--accent2)
    }

nav .spacer {
    flex: 1
}

nav button {
    padding: .55rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    color: var(--accent-ink);
    background: var(--accent);
    transition: .2s;
}

    nav button:hover {
        filter: brightness(1.1);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
    }

/* ───────── WRAPPER & HERO ────────────────────────────────── */
.wrapper {
    width: min(960px,92%);
    margin: auto;
    padding: 3rem 0;
    flex: 1
}

header.hero {
    text-align: center;
    margin-bottom: 2.5rem
}

    header.hero img {
        width: 100px;
        height: 100px
    }

    header.hero h1 {
        margin: .4rem 0 0;
        font-size: 2.2rem;
        background: linear-gradient(45deg,var(--accent),var(--accent2));
        -webkit-background-clip: text;
        color: transparent
    }

    header.hero h2 {
        margin: .3rem 0;
        font-size: 1rem;
        font-weight: 400;
        color: var(--weak)
    }

/* ───────── CARD (Mint) ───────────────────────────────────── */
.card {
    background: var(--bg2);
    padding: 2.2rem 2.6rem;
    border: 1px solid #222;
    border-radius: var(--radius);
    box-shadow: 0 0 30px #0008;
    text-align: center;
    width: 360px;
    margin: auto;
    transition: .25s
}

    .card:hover {
        transform: translateY(-4px)
    }

    .card select, .card button {
        width: 100%;
        padding: .8rem;
        border: none;
        border-radius: 8px;
        font-weight: 700
    }

    .card select {
        margin-top: .55rem;
        background: var(--bg3);
        color: var(--fg)
    }

    .card button {
        margin-top: 1.25rem;
        background: linear-gradient(45deg,var(--accent),var(--accent2));
        color: #000;
        cursor: pointer;
        transition: .25s
    }

        .card button:disabled {
            opacity: .4;
            cursor: not-allowed
        }

    .card .price {
        margin: .95rem 0 .35rem;
        font-size: .93rem;
        color: var(--accent)
    }

    .card #status {
        min-height: 1.4rem;
        margin-top: 1rem;
        font-size: .9rem
    }

        .card #status a {
            color: var(--accent2)
        }

/* ───────── FACTS BOX ─────────────────────────────────────── */
.facts {
    max-width: 760px;
    line-height: 1.5;
    background: var(--bg2);
    padding: 1.7rem 2.2rem;
    border: 1px solid #222;
    border-radius: var(--radius);
    margin: auto
}

    .facts h3 {
        margin: 0 0 .5rem;
        background: linear-gradient(45deg,var(--accent),var(--accent2));
        -webkit-background-clip: text;
        color: transparent
    }

    .facts li {
        margin: .4rem 0;
        color: var(--weak)
    }

/* ───────── GALLERY ───────────────────────────────────────── */
#grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fill,96px)
}

.catTile {
    cursor: pointer;
    transition: .2s
}

    .catTile img {
        width: 96px;
        height: 96px;
        border: 2px solid transparent;
        border-radius: 6px
    }

    .catTile:hover img {
        border-color: var(--accent)
    }

    .catTile span {
        position: absolute;
        bottom: 6px;
        right: 6px;
        background: #000c;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: .66rem
    }

.rarityBar {
    height: 4px;
    border-radius: 2px;
    margin-top: 4px;
    background: #555
}

    .rarityBar[data-rank="rare"] {
        background: #ffe600
    }

    .rarityBar[data-rank="epic"] {
        background: #00ffa1
    }

    .rarityBar[data-rank="legendary"] {
        background: #ff6600
    }

/* ───────── SINGLE PANEL ──────────────────────────────────── */
.details {
    display: flex;
    flex-wrap: wrap;
    gap: 2.8rem
}

    .details img {
        width: 260px;
        height: 260px;
        border: 4px solid var(--accent);
        border-radius: var(--radius)
    }

.meta {
    flex: 1;
    min-width: 240px
}

    .meta h2 {
        margin-top: 0;
        background: linear-gradient(45deg,var(--accent2),var(--accent));
        -webkit-background-clip: text;
        color: transparent
    }

    .meta table {
        border-collapse: collapse;
        margin-top: 1.2rem;
        width: 100%;
        font-size: .92rem
    }

    .meta td {
        padding: .5rem .85rem;
        border-bottom: 1px solid #333
    }

        .meta td:first-child {
            color: var(--weak)
        }

/* ───────── SPINNER ───────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid var(--accent);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .9s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* ───────── RESP ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ */
@media(max-width:540px) {
    .card {
        width: 95%
    }

    nav {
        gap: 1rem;
        padding: 0 16px
    }

        nav a {
            font-size: .82rem
        }

    header.hero h1 {
        font-size: 1.8rem
    }
}


/* Footer Styles */
footer {
    margin-top: 4rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid #333;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    margin-top: 0.5rem;
    font-size: 1.3rem;
    color: #fff;
}

.footer-section h4 {
    color: #8a65ff;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.5;
}

.footer-logo {
    width: 48px;
    height: 48px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        color: #e0e0e0;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .footer-links a:hover {
            color: #8a65ff;
        }

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background: #8a65ff;
        color: #ffffff;
        transform: translateY(-3px);
    }

.footer-disclaimer {
    padding: 1.25rem;
    background: rgba(30,30,30,0.5);
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid #444;
}

    .footer-disclaimer p {
        color: #b0b0b0;
        margin: 0;
        font-size: 0.95rem;
    }

    .footer-disclaimer a {
        color: #8a65ff;
        text-decoration: underline;
    }

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}
/* ═══════════════════════════════════════════════════════════════
   DESIGN SYSTEM OVERRIDE LAYER — refined neon-cyber
   Loaded on every page (after each page's own inline styles cascade,
   but these use higher specificity / !important where needed to win).
   One accent (indigo), calm surfaces, gradients only where earned.
   ═══════════════════════════════════════════════════════════════ */

/* ---- Re-assert the accent at body scope ----------------------
   Some pages redefine --accent in their own inline :root (e.g. a teal),
   which would hijack every var(--accent) on that page. Re-declaring on
   body (higher specificity than :root) keeps the brand accent consistent. */
body {
    --accent: #7c5cff;
    --accent-soft: #9d86ff;
    --accent2: #35d0e8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3 { letter-spacing: -0.01em; }

/* ---- Tame AI-generic rainbow gradient headings ----------------
   Page titles keep ONE tasteful, CONSISTENT on-brand gradient (indigo→cyan)
   instead of a different purple→orange/blue rainbow per page. Every
   *secondary* heading loses the gradient and becomes solid. */
.hero h1, header.hero h1,
.gallery-header h1,
.collection-header h1,
.page-header h1,
main > h1:first-of-type {
    background: linear-gradient(120deg, var(--accent-soft), var(--accent2)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
    letter-spacing: -0.01em !important;
}

.meta h2,
.facts h3,
.page-title,
.section-title,
[class*="gradient-text"],
[class*="gradient-title"] {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: var(--fg) !important;
}

/* ---- Content centering: stop headings/content stranding left -- */
.wrapper, main, .main-content, .container, .page-container {
    width: min(1120px, 92%);
    margin-inline: auto;
}

/* ---- Unified card surface ------------------------------------- */
.card, .facts, .panel, .stat-card, .info-card, .glass-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

/* ---- Buttons: solid indigo, no more black-on-gradient ---------
   Excludes utility toggles (provider pills, advanced options) which
   have their own quiet styling and manage their own active state. */
.card button:not(.provider-icon):not(.advanced-toggle),
button.primary, .btn-primary, .connect-button {
    background: var(--accent) !important;
    color: var(--accent-ink) !important;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 700;
    transition: .2s;
}
.card button:not(.provider-icon):not(.advanced-toggle):hover,
button.primary:hover, .btn-primary:hover, .connect-button:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ---- Inputs / selects ----------------------------------------- */
select, input[type="text"], input[type="search"], textarea {
    background: var(--surface-2);
    color: var(--fg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
}
select:focus, input:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* ---- Focus visibility (a11y) ---------------------------------- */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---- Tame the loud saturated rarity cards (marketplace) -------
   Replace full neon gradient fills with a dark surface + a colored
   left accent + matching text, so rarity still reads at a glance. */
.rarity-stat-card {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-left: 3px solid var(--r-common) !important;
    color: var(--fg) !important;
    box-shadow: none !important;
}
.rarity-stat-card .rarity-stat-name,
.rarity-stat-card .rarity-stat-icon { color: var(--fg) !important; }
.rarity-stat-card.legendary { border-left-color: var(--r-legendary) !important; }
.rarity-stat-card.epic      { border-left-color: var(--r-epic) !important; }
.rarity-stat-card.rare      { border-left-color: var(--r-rare) !important; }
.rarity-stat-card.common    { border-left-color: var(--r-common) !important; }

/* rarity badges/pills elsewhere → subtle, not full neon */
.rarity-badge, .rank-badge {
    background: color-mix(in srgb, var(--accent) 16%, transparent) !important;
    color: var(--accent-soft) !important;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

/* ---- Trait rarity bars: single accent, not multi-color -------- */
.rarityBar { background: var(--line-strong); }
.rarityBar[data-rank="rare"]      { background: var(--r-rare); }
.rarityBar[data-rank="epic"]      { background: var(--r-epic); }
.rarityBar[data-rank="legendary"] { background: var(--r-legendary); }

/* ---- Advanced Options toggle: subtle surface, no loud gradient - */
.advanced-toggle,
.advanced-toggle.active,
button.advanced-toggle,
#advancedToggle {
    background: var(--surface-2) !important;
    background-image: none !important;
    color: var(--accent-soft) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
.advanced-toggle:hover, #advancedToggle:hover { border-color: var(--accent) !important; }
.advanced-toggle::before { display: none !important; }

/* ---- Audio player: keep it tidy (bottom-right), not full-bleed - */
#static-broadcasts-player {
    z-index: 900 !important;
}

/* ---- Hide developer-only Debug toggle from production UI ------ */
.debug-toggle, .debug-panel { display: none !important; }

/* ---- Empty chart/preview boxes: don't render as dead voids ---- */
.combat-chart-container:empty,
.chart-container:empty { display: none; }

/* ---- Detail page: fix cramped/overlapping action buttons ------ */
.action-buttons, .panel-actions, .detail-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .6rem !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    margin: 1rem 0 !important;
    position: static !important;
}
.action-buttons .action-btn,
.action-buttons a, .action-buttons button,
.panel-actions a, .panel-actions button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem .95rem !important;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--fg) !important;
    text-decoration: none;
    font-size: .88rem;
    white-space: nowrap;
    width: auto !important;
    position: static !important;
    margin: 0 !important;
}
.action-buttons .action-btn.primary-btn {
    background: var(--accent) !important;
    color: var(--accent-ink) !important;
    border-color: transparent;
}
.action-buttons .action-btn:hover { border-color: var(--accent); filter: brightness(1.06); }

/* ---- Nav brand: consistent accent ----------------------------- */
nav a.active, nav .brand-name { color: var(--accent-soft); }

/* ---- Connect button: solid accent; connected = calm green ----- */
.connect-button {
    background: var(--accent) !important;
    color: var(--accent-ink) !important;
    border-radius: 10px !important;
}
.connect-button.connected {
    background: color-mix(in srgb, var(--good) 85%, #000) !important;
    color: #06281c !important;
}
.connect-button:hover { filter: brightness(1.08); }

/* ---- Scrollbar polish ----------------------------------------- */
* { scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* (Marketplace now has its own dedicated page + styles in marketplace.html /
   marketplace-app.js — the old coming-soon gate and hidden-section rules were
   removed when the real trading UI shipped.) */

/* ═══════════════════════════════════════════════════════════════
   Bunker radio player ("Dead Air") — clean, usable overrides.
   The stock widget crams a carousel + header + controls into an 80px
   box; we give it a proper compact bar (minimized) and a tidy panel
   (expanded), on the site's palette.
   ═══════════════════════════════════════════════════════════════ */
#static-broadcasts-player {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.45) !important;
    backdrop-filter: none !important;
    color: var(--fg) !important;
    font-family: inherit !important;
    overflow: visible !important;
}

/* Minimized: a clean ~280px bar. Hide the carousel + extra chrome. */
#static-broadcasts-player.minimized {
    width: 280px !important;
    height: auto !important;
    padding: 12px 14px 12px 52px !important;
    border-radius: 14px !important;
}
#static-broadcasts-player.minimized .stream-carousel,
#static-broadcasts-player.minimized .player-drag-handle,
#static-broadcasts-player.minimized .focus-mode-panel,
#static-broadcasts-player.minimized .visualizer,
#static-broadcasts-player.minimized .player-visualizer,
#static-broadcasts-player.minimized .ai-commentary { display: none !important; }

#static-broadcasts-player.minimized .player-header { margin: 0 0 8px !important; padding: 0 !important; text-align: left !important; }
#static-broadcasts-player .player-title { font-size: .95rem !important; font-weight: 700 !important; margin: 0 !important; color: var(--fg) !important; }
#static-broadcasts-player .player-subtitle { font-size: .72rem !important; color: var(--weak) !important; margin: 0 !important; }

/* Avatar → small round badge tucked top-left, no overflow */
#static-broadcasts-player .panel-avatar {
    top: 10px !important; left: 10px !important;
    width: 32px !important; height: 32px !important;
    font-size: 16px !important;
    background: var(--accent) !important;
    border: 2px solid var(--surface) !important;
    box-shadow: none !important; animation: none !important;
}

/* Controls: a tidy row of round buttons on the site palette */
#static-broadcasts-player .player-controls {
    display: flex !important; align-items: center !important; gap: 8px !important;
    margin: 0 !important; padding: 0 !important; flex-wrap: wrap !important;
}
#static-broadcasts-player .broadcast-control-btn {
    width: 34px !important; height: 34px !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    background: var(--surface-2) !important;
    border: 1px solid var(--line) !important;
    border-radius: 9px !important;
    color: var(--fg) !important;
    box-shadow: none !important; transition: .15s !important;
}
#static-broadcasts-player .broadcast-control-btn:hover { border-color: var(--accent) !important; color: var(--accent-soft) !important; }
#static-broadcasts-player .broadcast-control-btn.play-btn { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--accent-ink) !important; }

/* Expanded: keep it contained and on-palette */
#static-broadcasts-player.expanded {
    width: 320px !important; height: auto !important; max-height: 80vh !important;
    padding: 16px 16px 16px 16px !important; overflow-y: auto !important;
}
#static-broadcasts-player.expanded .stream-carousel {
    display: flex !important; flex-direction: column !important; gap: 6px !important;
    margin: 10px 0 !important; max-height: 220px !important; overflow-y: auto !important;
}
#static-broadcasts-player .stream-card {
    background: var(--surface-2) !important; border: 1px solid var(--line) !important;
    border-radius: 9px !important; padding: 8px 10px !important; cursor: pointer !important;
}
#static-broadcasts-player .stream-card.active { border-color: var(--accent) !important; background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)) !important; }
#static-broadcasts-player .stream-card-name { font-size: .85rem !important; font-weight: 600 !important; color: var(--fg) !important; }
#static-broadcasts-player .stream-card-genre { font-size: .72rem !important; color: var(--weak) !important; }

/* The "show player" reopen button → tidy round accent button */
.show-player-button {
    background: var(--accent) !important; color: #fff !important;
    border: 2px solid var(--surface) !important; box-shadow: 0 6px 20px rgba(0,0,0,.4) !important;
}

/* ---- Player overflow guards: never let long text clip the widget - */
#static-broadcasts-player .stream-name,
#static-broadcasts-player .stream-info,
#static-broadcasts-player .player-footer,
#static-broadcasts-player [id="streamProvider"] {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
}
#static-broadcasts-player.expanded .stream-info,
#static-broadcasts-player.expanded .player-footer { white-space: normal !important; }

/* ---- Mint stat tiles: no clip on narrow screens ------------------ */
@media (max-width: 560px) {
    .mint-stats { grid-template-columns: repeat(2, 1fr) !important; }
}
