﻿/* ───────── 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 KITTY ──────────────────────────────────── */
.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 ----------------
   The hero title keeps ONE tasteful on-brand gradient (indigo→cyan) as
   the signature. Every *secondary* heading loses the gradient and becomes
   solid, so the page has one focal color moment instead of many. */
.hero h1, header.hero h1 {
    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 --------- */
.card button,
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: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; }

/* ---- Hide the broken/overlapping audio-player widget ---------- */
#ninja-casts-player { display: none !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, .kitty-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,
.kitty-actions a, .kitty-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: coming-soon state ---------------------------
   No trading contract on Hyve yet, so hide the empty analytics/stats/
   listing sections and show one clear banner instead. */
.coming-soon-banner {
    max-width: 640px;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.coming-soon-emoji { font-size: 2.5rem; margin-bottom: .5rem; }
.coming-soon-banner h2 { margin: .25rem 0 .5rem; color: var(--fg); font-size: 1.4rem; }
.coming-soon-banner p { color: var(--weak); line-height: 1.55; max-width: 46ch; margin: 0 auto 1.5rem; }
.coming-soon-banner a { color: var(--accent-soft); }
.coming-soon-cta {
    display: inline-block;
    padding: .7rem 1.4rem;
    background: var(--accent);
    color: var(--accent-ink) !important;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}
.coming-soon-cta:hover { filter: brightness(1.1); }

/* Hide the not-yet-functional trading UI on the marketplace page */
.exchange-rate-ticker,
.marketplace-stats,
.rarity-floor-prices,
.market-analytics,
.advanced-analytics,
.hot-items-section,
.hotlist-banner,
.trending-carousel,
.marketplace-tabs,
.marketplace-main-tabs,
.listing-form-container,
.notification-bell,
.tab-content { display: none !important; }
