/*
 * radicalRulesStyles.css
 * TNT | Radical Rules SPARK Saga — page-specific styles (light theme)
 * 2026-07-22
 *
 * url() paths are relative to this file's location:
 *   RadicalSPARKSaga2026-07-22/styles/
 * so ../images/ → RadicalSPARKSaga2026-07-22/images/
 */

/* ── Design tokens ───────────────────────────────────────────── */
:root {
    --rr-purple:      #6f2da8;
    --rr-purple-light:#9b59d4;
    --rr-cream:       #faf8f2;
    --rr-warm:        #f4f0e6;
    --rr-border:      #e0d8cc;
    --rr-text:        #2d2417;
    --rr-muted:       #6b5c44;

    /* Stage accent colours */
    --s0: #8b8b8b;   /* neutral — raw text */
    --s1: #cc3333;   /* red — HTML basics */
    --s2: #2a7dbf;   /* blue — Bootstrap/validate */
    --s3: #6f2da8;   /* purple — CSS selectors */
    --s4: #2e7d32;   /* green — compound selectors */
    --s5: #d46b1a;   /* orange — background images */
    --s6: #b8860b;   /* gold — fonts + JavaScript */
    --s7: #7b3fa0;   /* bold purple — full Bootstrap */
}

/* ── Body — light warm background ───────────────────────────── */
body {
    background-color: var(--rr-cream);
    color: var(--rr-text);
    font-family: 'Inter', sans-serif;
}

/* ── Override base links for light theme ─────────────────────── */
a { color: var(--rr-purple); }
a:hover { color: var(--rr-purple-light); }

/* ── Log bar ─────────────────────────────────────────────────── */
.rr-log-bar {
    background: var(--rr-purple);
    border-bottom: 1px solid rgba(0,0,0,0.12);
    padding: 0.30rem 1.25rem;
}

.rr-log-bar a {
    color: rgba(255,255,255,0.88);
    font-size: 0.80rem;
    font-weight: 600;
    opacity: 0.90;
    transition: opacity 0.2s;
}

.rr-log-bar a:hover {
    color: #fff;
    opacity: 1;
    text-decoration: underline;
}

/* ── Hero — classroomKids.jpg, light overlay ─────────────────── */
#rrHero {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.82) 0%, rgba(253,248,237,0.75) 100%),
        url('../images/classroomKids.jpg') center 40% / cover no-repeat;
    border-bottom: 3px solid var(--rr-purple);
    padding: 3rem 1rem 2.75rem;
}

/* Text column — left-aligned on md+, centred on mobile */
.hero-text-col { text-align: center; }
@media (min-width: 768px) {
    .hero-text-col { text-align: left; }
    #rrHero .hero-subtitle { margin-left: 0; margin-right: 0; }
}

/* Poster image — fills its column; much taller than before */
.rr-hero-poster {
    max-height: 400px;
    max-width: 100%;
    height: auto;
    width: auto;
}

#rrHero .hero-eyebrow {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--rr-purple);
    display: block;
    margin-bottom: 0.75rem;
}

#rrHero .hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    color: var(--rr-purple);
    text-shadow: 0 2px 8px rgba(111,45,168,0.20);
    margin-bottom: 0.6rem;
    line-height: 1.1;
}

#rrHero .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #4a3a26;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 1.2rem;
    line-height: 1.65;
}

/* ── Page shell ──────────────────────────────────────────────── */
.rr-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1rem 4rem;
}

/* ── Section label / title ───────────────────────────────────── */
.rr-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rr-purple);
    margin-bottom: 0.4rem;
}

.rr-section-title {
    font-family: var(--boogaloo, 'Boogaloo', cursive);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--rr-text);
    margin-bottom: 0.4rem;
}

/* ── Intro panel ─────────────────────────────────────────────── */
.rr-intro-panel {
    background: #fff;
    border: 1px solid var(--rr-border);
    border-left: 5px solid var(--rr-purple);
    border-radius: 0 10px 10px 0;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
}

.rr-intro-panel p:last-child { margin-bottom: 0; }

/* Radical design showcase image */
.rr-design-img {
    border: 3px solid var(--rr-purple);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(111,45,168,0.20);
    max-width: 100%;
}

/* ── Stage cards ─────────────────────────────────────────────── */
.stage-card {
    background: #fff;
    border: 1px solid var(--rr-border);
    border-radius: 12px;
    border-top: 5px solid var(--stage-color, var(--rr-purple));
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.18s, box-shadow 0.18s;
    overflow: hidden;
}

.stage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.13);
}

.stage-card-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.1rem 0.6rem;
}

.stage-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--stage-color, var(--rr-purple));
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

.stage-era {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--stage-color, var(--rr-purple));
}

.stage-card-body {
    padding: 0.4rem 1.1rem 0.8rem;
    flex-grow: 1;
}

.stage-card-body h3 {
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--rr-text);
    margin-bottom: 0.35rem;
}

.stage-card-body p {
    font-size: 0.84rem;
    color: var(--rr-muted);
    line-height: 1.55;
    margin-bottom: 0.7rem;
}

/* Concept tag pills */
.concept-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.concept-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--stage-color, var(--rr-purple)) 12%, #fff);
    color: var(--stage-color, var(--rr-purple));
    border: 1px solid color-mix(in srgb, var(--stage-color, var(--rr-purple)) 25%, transparent);
}

.stage-card-footer {
    padding: 0.7rem 1.1rem;
    border-top: 1px solid var(--rr-border);
    background: var(--rr-warm);
}

.btn-stage {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--stage-color, var(--rr-purple));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    transition: filter 0.18s, transform 0.12s;
}

.btn-stage:hover {
    filter: brightness(1.12);
    transform: scale(1.02);
    color: #fff;
}

/* ── Stage modals ─────────────────────────────────────────────── */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.20);
}

.modal-header {
    border-bottom: 3px solid var(--stage-color, var(--rr-purple));
    background: color-mix(in srgb, var(--stage-color, var(--rr-purple)) 8%, #fff);
    border-radius: 12px 12px 0 0;
    padding: 1.1rem 1.5rem;
}

.modal-stage-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--stage-color, var(--rr-purple));
    color: #fff;
    font-weight: 900;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.20);
    flex-shrink: 0;
}

.modal-stage-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rr-text);
    margin-bottom: 0.1rem;
}

.modal-stage-sub {
    font-size: 0.78rem;
    color: var(--rr-muted);
}

.modal-body { padding: 1.4rem 1.5rem; }

.modal-what-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--stage-color, var(--rr-purple));
    margin-bottom: 0.4rem;
    display: block;
}

.modal-desc {
    font-size: 0.93rem;
    line-height: 1.70;
    color: var(--rr-text);
    margin-bottom: 1.1rem;
}

.modal-concepts {
    background: var(--rr-warm);
    border: 1px solid var(--rr-border);
    border-left: 4px solid var(--stage-color, var(--rr-purple));
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1rem;
    margin-bottom: 1.1rem;
}

.modal-concepts ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.87rem;
    color: var(--rr-text);
    line-height: 1.75;
}

.modal-code-snap {
    background: #f8f6f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
    font-family: 'Courier New', monospace;
    font-size: 0.81em;
    color: #2d2417;
    overflow-x: auto;
    white-space: pre;
    margin-bottom: 0;
}

.modal-footer {
    border-top: 1px solid var(--rr-border);
    padding: 0.9rem 1.5rem;
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

.btn-open-stage {
    background: var(--stage-color, var(--rr-purple));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.4rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: filter 0.18s;
}

.btn-open-stage:hover {
    filter: brightness(1.12);
    color: #fff;
    text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 576px) {
    .rr-shell { padding: 1.5rem 0.75rem 2.5rem; }
    .modal-body { padding: 1.1rem; }
}
