/* ════════════════════════════════════════════════════════════════════════
   galtonLinesSimAppStylesV1.css
   TNT | Galton Lines Simulator
   Created: 11/05/2026

   Palette: dark teal — distinct from the navy/steel-blue peg simulator
     --gl-bg:     #04100e   very dark teal-black
     --gl-card:   #071a17   card background
     --gl-teal:   #00c8b2   primary accent (teal)
     --gl-gold:   #f5c842   theoretical curve / highlights
     --gl-light:  #bff0e8   near-white text
   ════════════════════════════════════════════════════════════════════════ */

:root {
    --gl-bg:      #04100e;
    --gl-card:    #071a17;
    --gl-teal:    #00c8b2;
    --gl-gold:    #f5c842;
    --gl-light:   #bff0e8;
    --gl-border:  rgba(0, 200, 178, 0.20);
}

body {
    background-color: var(--gl-bg);
    color: var(--gl-light);
    font-family: 'Inter', sans-serif;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
#hero {
    min-height: 28vh;
    background:
        linear-gradient(180deg, rgba(4,16,14,0.94) 0%, rgba(0,40,36,0.60) 100%),
        url('../images/robotGaltonBoard2.jpg') center 30% / cover no-repeat;
    padding: 3.5rem 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content { text-align: center; max-width: 700px; margin: 0 auto; }
.hero-eyebrow {
    display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--gl-teal); margin-bottom: 0.6rem; opacity: 0.88;
}
.hero-title {
    font-family: 'Boogaloo', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff; margin-bottom: 0.5rem; line-height: 1.15;
}
.hero-subtitle {
    font-size: 0.96rem; color: rgba(255,255,255,0.66);
    max-width: 560px; margin: 0 auto; line-height: 1.65;
}

/* ── SPARK bar ─────────────────────────────────────────────────────── */
.gl-spark-bar {
    background: rgba(0,200,178,0.06);
    border-bottom: 1px solid var(--gl-border);
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.gl-spark-bar a {
    color: rgba(191,240,232,0.70);
    text-decoration: none;
    transition: color 0.2s;
}
.gl-spark-bar a:hover { color: var(--gl-teal); }
.gl-spark-bar span { margin-left: auto; color: rgba(191,240,232,0.38); font-weight: 400; }

/* ── Simulation section ────────────────────────────────────────────── */
#simSection { padding: 1.5rem 0 3rem; }

/* ── About details ─────────────────────────────────────────────────── */
.about-details {
    background: var(--gl-card);
    border: 1px solid var(--gl-border);
    border-radius: 8px;
    padding: 0.9rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    color: rgba(191,240,232,0.78);
    line-height: 1.7;
}
.about-details summary {
    font-weight: 600; color: var(--gl-teal); cursor: pointer; font-size: 0.9rem;
}
.about-details p { margin-bottom: 0.55rem; }
.about-details p:last-child { margin-bottom: 0; }
.about-details code { background: rgba(0,200,178,0.12); color: #7dffee; padding: 1px 4px; border-radius: 3px; }

/* ── Control card ──────────────────────────────────────────────────── */
.gl-ctrl-card {
    background: var(--gl-card);
    border: 1px solid var(--gl-border);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
}

.ctrl-section-heading {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gl-teal);
    margin: 0.9rem 0 0.55rem;
    opacity: 0.85;
}
.ctrl-section-heading:first-child { margin-top: 0; }

/* Drop buttons */
.btn-drop-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.4rem; }
.btn-gl-drop {
    flex: 1 1 calc(50% - 0.35rem);
    background: rgba(0,200,178,0.10);
    border: 1px solid rgba(0,200,178,0.30);
    color: var(--gl-teal);
    border-radius: 6px;
    padding: 0.38rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    white-space: nowrap;
}
.btn-gl-drop:hover { background: rgba(0,200,178,0.20); border-color: var(--gl-teal); }
.btn-gl-drop.active { background: rgba(0,200,178,0.28); border-color: var(--gl-teal); color: #fff; }

.btn-gl-reset {
    width: 100%; background: rgba(255,80,80,0.08); border: 1px solid rgba(255,80,80,0.22);
    color: rgba(255,130,130,0.88); border-radius: 6px; padding: 0.38rem 0.5rem;
    font-size: 0.78rem; font-weight: 600; cursor: pointer; margin-bottom: 0.35rem;
    transition: background 0.18s;
}
.btn-gl-reset:hover { background: rgba(255,80,80,0.18); }

.btn-gl-cfg-reset {
    color: rgba(191,240,232,0.60); border-color: rgba(191,240,232,0.15);
    background: rgba(191,240,232,0.04);
}
.btn-gl-cfg-reset:hover { background: rgba(191,240,232,0.10); }

.gl-hr { border-color: var(--gl-border); margin: 0.8rem 0; }

/* Sliders */
.slider-group { margin-bottom: 0.6rem; }
.slider-group label {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.78rem; font-weight: 600; color: rgba(191,240,232,0.72);
    margin-bottom: 0.25rem;
}
.slider-val { color: var(--gl-teal); font-weight: 700; }
.form-range::-webkit-slider-thumb { background: var(--gl-teal); }
.form-range::-moz-range-thumb     { background: var(--gl-teal); }
.form-range::-webkit-slider-runnable-track { background: rgba(0,200,178,0.20); }

/* Toggle row */
.toggle-row {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.78rem; font-weight: 600;
    color: rgba(191,240,232,0.65); margin-bottom: 0.4rem;
}
.toggle-row .form-check-input:checked { background-color: var(--gl-teal); border-color: var(--gl-teal); }

/* Stats panel */
.gl-stats-panel {
    background: rgba(0,200,178,0.04);
    border: 1px solid var(--gl-border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}
.stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.22rem 0;
    border-bottom: 1px solid rgba(0,200,178,0.08);
    font-size: 0.8rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: rgba(191,240,232,0.55); }
.stat-value { color: var(--gl-light); font-weight: 600; font-size: 0.82rem; }

/* Theory note */
.gl-theory-note {
    font-size: 0.78rem; color: rgba(191,240,232,0.52); line-height: 1.6;
    border-left: 3px solid rgba(245,200,66,0.35);
    padding-left: 0.65rem; margin-bottom: 0.6rem;
}
.gl-theory-note code { background: rgba(245,200,66,0.12); color: var(--gl-gold); padding: 1px 4px; border-radius: 3px; }
.gl-theory-note strong { color: var(--gl-gold); }

/* Canvas wrapper */
.gl-canvas-wrap { border-radius: 8px; overflow: hidden; line-height: 0; }
.gl-canvas-wrap canvas { display: block; max-width: 100%; }

/* ── Footer ────────────────────────────────────────────────────────── */
.gl-footer {
    background: rgba(0,200,178,0.04);
    border-top: 1px solid var(--gl-border);
    padding: 1rem;
    font-size: 0.78rem;
    color: rgba(191,240,232,0.38);
    text-align: center;
}
.gl-footer .tnt-t { color: var(--tnt-red, #d81827); font-family: 'Boogaloo', sans-serif; }
