/*
 * ============================================================
 *  TNT | Pondering — SPARK Edition
 *  File:    brainPonderSparkStyles.css
 *  Coder:   KLP / GitHub Copilot
 *  Created: 2026-07-06
 *
 *  Pinky & the Brain deep purple-navy palette with ACME yellow
 *  accents. Requires CSS custom properties from tnt-base-styles.css.
 * ============================================================
 */

/* ── App color tokens ── */
:root {
    --bp-dark:   #0e0828;              /* near-black purple-navy */
    --bp-mid:    #1d1150;              /* deep brain blue        */
    --bp-card:   #150c3d;              /* card background        */
    --bp-blue:   #3a4b9f;              /* medium brain blue      */
    --bp-pink:   #d4572a;              /* Pinky nose orange      */
    --bp-yellow: #FBE860;              /* ACME lab yellow        */
    --bp-border: rgba(251,232,96,0.20);
}

/* ── Body — gradient sampled from ACME Labs artwork ── */
body {
    background: linear-gradient(180deg, #0e0828 0%, #2a2a5d 100%);
    min-height: 100vh;
}

/* ── Hero ── */
#hero {
    min-height: 36vh;
    background-image:
        linear-gradient(rgba(14,8,40,0.38) 0%, rgba(14,8,40,0.65) 100%),
        url('../images/ACME_LABS_1998_Reboot.webp');
    background-size: cover;
    background-position: center top;
    padding: 3rem 1rem;
    text-align: center;
}

.hero-title    { font-size: clamp(2.2rem,6vw,3.8rem); margin-bottom:0.5rem; }
.hero-subtitle { font-size: clamp(0.9rem,2vw,1.1rem); }

/* ── About details ── */
#gameSection details > summary {
    color: var(--bp-yellow);
    font-style: italic;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0;
    list-style: none;
}

#gameSection details > summary::before {
    content: "\25B6\00a0";
    font-style: normal;
    font-size: 0.75em;
}

#gameSection details[open] > summary::before {
    content: "\25BC\00a0";
}

#gameSection details .about-body {
    margin-top: 0.5rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--bp-yellow);
    color: rgba(255,255,255,0.72);
    font-size: 0.9rem;
    line-height: 1.65;
}

.about-body code {
    background: rgba(251,232,96,0.12);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.88em;
    color: var(--bp-yellow);
}

/* ── About poster figure (floated right inside about-body) ── */
.about-poster-fig {
    width: 38%;
    max-width: 155px;
}

.about-poster-fig img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.about-poster-fig figcaption {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.40);
    font-style: italic;
    text-align: center;
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* ── Game section — transparent so body gradient shows through ── */
#gameSection {
    background: transparent;
    padding: 2rem 0 4rem;
}

/* ── Card ── */
.bp-card {
    background: var(--bp-card);
    border: 1px solid var(--bp-border);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 32px rgba(0,0,0,0.65);
    height: 100%;
}

/* ── P&B Poster image ── */
.bp-poster {
    max-width: 175px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
    display: block;
    margin: 0 auto 0.4rem;
}

.bp-poster:hover { opacity: 0.85; }

.bp-poster-caption {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    font-style: italic;
    text-align: center;
}

/* ── Canvas container ── */
.bp-canvas-wrap {
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.bp-canvas-wrap canvas {
    border-radius: 10px;
    display: block;
    cursor: pointer;
}

/* ── Font method selector ── */
.bp-method-heading {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bp-yellow);
    margin: 1rem 0 0.5rem;
}

.bp-method-group {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.bp-method-btn {
    background: #261756;
    border: 1px solid rgba(251,232,96,0.25);
    color: rgba(255,255,255,0.65);
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.bp-method-btn input[type="radio"] {
    accent-color: var(--bp-yellow);
    cursor: pointer;
}

/* Highlight the active method */
.bp-method-btn:has(input:checked) {
    background: var(--bp-yellow);
    border-color: var(--bp-yellow);
    color: #0e0828;
    font-weight: 700;
}

.bp-method-btn:hover:not(:has(input:checked)) {
    border-color: var(--bp-yellow);
    color: var(--bp-yellow);
}

/* ── Response selector ── */
.bp-select-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bp-yellow);
    margin-bottom: 0.4rem;
}

#mySelect {
    background: #261756;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(251,232,96,0.25);
    font-size: 0.8rem;
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

#mySelect:focus {
    border-color: var(--bp-yellow);
    box-shadow: 0 0 0 2px rgba(251,232,96,0.18);
    outline: none;
}

/* ── Show It button ── */
#selectBtn {
    background: var(--bp-pink);
    border: none;
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

#selectBtn:hover { background: #b84420; }

/* ── Click hint ── */
#clickHint {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    font-style: italic;
    margin-top: 0.4rem;
    margin-bottom: 0;
}

/* ── Stats display ── */
.bp-stats {
    margin-top: 0.65rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(251,232,96,0.08);
    text-align: left;
}

.bp-stat-line {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.74rem;
    color: rgba(255,255,255,0.40);
    margin: 0.1rem 0;
    line-height: 1.4;
}

.bp-stat-line strong {
    color: rgba(251,232,96,0.75);
}

/* ── Secondary link bar ── */
.link-bar {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 1.25rem;
}

.link-bar a {
    color: rgba(251,232,96,0.65);
    font-weight: 600;
}

.link-bar a:hover {
    color: var(--bp-yellow);
    text-decoration: underline;
}
