/* ═══════════════════════════════════════════════════════════════════
   TNT Department of Innovation — Studio Intro Pages
   Base Stylesheet  ·  tnt-base.css

   SEPARATION OF CONCERNS — how this file system works:
   ┌─────────────────────────────────────────────────────────────┐
   │  tnt-base.css          ← structure, layout, component shape │
   │  tnt-theme-*.css       ← all color decisions (one per page) │
   └─────────────────────────────────────────────────────────────┘
   Each studio intro page links BOTH files:
       <link rel="stylesheet" href="styles/tnt-base.css">
       <link rel="stylesheet" href="styles/tnt-theme-foundation.css">

   The theme file defines these CSS custom properties (variables):
       --accent        primary course color
       --accent-rgb    same color as  r, g, b  for use in rgba()
       --accent-dark   darker shade of accent
       --accent-light  lighter shade of accent
       --page-bg       darkest background color
       --page-mid      medium-dark background color
       --navbar-bg     navbar rgba() value (with transparency)

   Constants defined here (same on every page):
       --text-light    body text color
       --spark-yellow  S.P.A.R.K. brand yellow — always #f4e542
       --code-bg       code window background
       --code-bar-bg   code window title bar background
   ═══════════════════════════════════════════════════════════════════ */


/* ─── CONSTANTS ─────────────────────────────────────────────────────
   These values never change regardless of which course page is open.
   ─────────────────────────────────────────────────────────────────── */
:root {
    --text-light:    #f8f9fa;
    --spark-yellow:  #f4e542;   /* S.P.A.R.K. framework brand — always yellow */
    --code-bg:       #0d1117;
    --code-bar-bg:   #161b22;
}


/* ─── GLOBAL ─────────────────────────────────────────────────────── */
* { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--page-bg);
    color: var(--text-light);
    overflow-x: hidden;
}


/* ─── NAVBAR ─────────────────────────────────────────────────────── */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent);
}

.navbar-brand {
    font-weight: 900;
    color: var(--accent) !important;
    letter-spacing: 1px;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--accent) !important; }


/* ─── HERO ───────────────────────────────────────────────────────── */
/* Background gradient is set in the theme file */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated grid lines — color tinted to the accent */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

/* Glowing radial orb */
.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.13) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-block;
    background: rgba(var(--accent-rgb), 0.13);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

/* Gradient text — transitions from accent to its lighter shade */
.hero h1 .highlight {
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lead {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
}


/* ─── CODE WINDOW ────────────────────────────────────────────────── */
.code-window {
    background: var(--code-bg);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(var(--accent-rgb), 0.1);
    max-width: 520px;
}

.code-window-bar {
    background: var(--code-bar-bg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* macOS-style window control dots */
.dot              { width: 12px; height: 12px; border-radius: 50%; }
.dot-red          { background: #ff5f57; }
.dot-yellow       { background: #febc2e; }
.dot-green        { background: #28c840; }

.code-window-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-left: 8px;
}

.code-window pre {
    margin: 0;
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 2;
    overflow: hidden;
}

/* Syntax token colors — identical across every studio page */
.code-line  { display: block; }
.kw         { color: #ff7b72; }          /* keywords        */
.fn         { color: #d2a8ff; }          /* function names  */
.str        { color: #a5d6ff; }          /* string literals */
.num        { color: #79c0ff; }          /* numbers         */
.cm         { color: #8b949e; font-style: italic; }  /* comments */
/* Language-specific tokens (.py .jt .tag etc.) live in the theme file */

/* Blinking cursor */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}


/* ─── SECTIONS ───────────────────────────────────────────────────── */
section { padding: 80px 0; }

/* Section label (small caps above a heading) */
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.section-sub {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}


/* ─── WHAT YOU'LL BUILD — CARDS ──────────────────────────────────── */
/* Section background is set in the theme file */
.build-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 16px;
    padding: 32px 24px;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Accent bar that slides in on hover */
.build-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.build-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(var(--accent-rgb), 0.1);
}

.build-card:hover::before { transform: scaleX(1); }

.build-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    display: block;
}

.build-card h3 {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.build-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.7;
}


/* ─── TOOLS ──────────────────────────────────────────────────────── */
/* Section background is set in the theme file */
.tool-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: default;
    color: var(--text-light);
}

.tool-pill:hover {
    background: rgba(var(--accent-rgb), 0.12);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.04);
}

.tool-pill i { font-size: 1.1rem; }


/* ─── SKILLS JOURNEY ─────────────────────────────────────────────── */
/* Section background is set in the theme file */
.skill-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: border-color 0.3s, background 0.3s;
}

.skill-item:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
}

/* Numbered circle badge — uses accent gradient */
.skill-num {
    min-width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--page-bg);   /* dark text on colored circle */
    flex-shrink: 0;
}

.skill-text h3 {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-light);
}

.skill-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}


/* ─── S.P.A.R.K. SECTION ────────────────────────────────────────── */
/* Background gradient is set in the theme file */
.spark-section {
    position: relative;
    overflow: hidden;
}

/* Giant watermark text */
.spark-section::before {
    content: 'S.P.A.R.K.';
    position: absolute;
    font-size: 18vw;
    font-weight: 900;
    color: rgba(255,255,255,0.02);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 1rem;
}

.spark-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
    position: relative;
    z-index: 1;
}

.spark-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border-color: var(--accent);
}

/* S.P.A.R.K. letters are ALWAYS yellow — program-wide brand identity */
.spark-letter-big {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--spark-yellow);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(244,229,66,0.4);
}

.spark-word {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 6px;
}

.spark-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}


/* ─── SPARK IN ACTION ────────────────────────────────────────────── */
/* Section background is set in the theme file */
.prompt-window {
    background: var(--code-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    overflow: hidden;
}

.prompt-window-bar {
    background: var(--code-bar-bg);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prompt-window-bar .bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    margin-left: 6px;
}

/* Base badge shape — color variants (.initial .followup .validate) in theme */
.prompt-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.prompt-body {
    padding: 20px 24px;
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
    font-family: 'Inter', sans-serif;
}

/* "YOU ASKED:" label — color in theme file */
.prompt-body .user-tag {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Highlighted keywords inside prompt text — color in theme file */
.prompt-body em {
    font-style: normal;
    font-weight: 600;
}

/* S.P.A.R.K. step rows — hover always uses S.P.A.R.K. yellow */
.spark-step-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: border-color 0.3s, background 0.3s;
}

.spark-step-row:hover {
    border-color: rgba(244,229,66,0.35);
    background: rgba(244,229,66,0.03);
}

/* The big letter badge is always yellow — S.P.A.R.K. identity */
.spark-step-letter {
    min-width: 48px;
    height: 48px;
    background: rgba(244,229,66,0.1);
    border: 1px solid rgba(244,229,66,0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--spark-yellow);
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
}

.spark-step-content h4 {
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
    font-size: 1rem;
}

.spark-step-content p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1.7;
}


/* ─── TOOL CALLOUT ───────────────────────────────────────────────── */
.tool-callout {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 14px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tool-callout-icon { font-size: 2.2rem; flex-shrink: 0; }

.tool-callout-text h3 {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.tool-callout-text p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}


/* ─── META BADGE ─────────────────────────────────────────────────── */
.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* ─── PATHWAY ────────────────────────────────────────────────────── */
/* Section background is set in the theme file */
.pathway-card {
    border-radius: 20px;
    padding: 32px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pathway-card .card-num {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    font-weight: 900;
    opacity: 0.05;
    line-height: 1;
    pointer-events: none;
}

.pathway-card.current {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.05));
    border: 2px solid var(--accent);
}

.pathway-card.next {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
}

.pathway-card h3 { font-weight: 700; margin-bottom: 8px; }

.pathway-card .step-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pathway-card.current .step-label { color: var(--accent); }
.pathway-card.next    .step-label { color: rgba(255,255,255,0.4); }

.pathway-card ul {
    padding-left: 18px;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}


/* ─── CTA SECTION ────────────────────────────────────────────────── */
/* Background is set in the theme file */
.cta-section {
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
}

/* Generic course CTA button — named versions in theme files */
.btn-course {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--page-bg);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    display: inline-block;
}

.btn-course:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 35px rgba(var(--accent-rgb), 0.4);
    color: var(--page-bg);
}

.btn-outline-course {
    background: transparent;
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: 50px;
    border: 2px solid var(--accent);
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-course:hover {
    background: var(--accent);
    color: var(--page-bg);
}


/* ─── STAT COUNTER ───────────────────────────────────────────────── */
.stat-box {
    text-align: center;
    padding: 24px;
}

.stat-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
}

.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.1);
    align-self: stretch;
}


/* ─── FOOTER ─────────────────────────────────────────────────────── */
footer {
    background: var(--page-bg);
    border-top: 1px solid rgba(var(--accent-rgb), 0.2);
    padding: 40px 0 24px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

footer a           { color: var(--accent); text-decoration: none; }
footer a:hover     { text-decoration: underline; }


/* ─── DIVIDER LINE ───────────────────────────────────────────────── */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.4), transparent);
    border: none;
    margin: 0;
}


/* ─── SCROLL REVEAL ──────────────────────────────────────────────── */
/* JS adds .visible when element enters the viewport */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero   { min-height: auto; padding: 120px 0 60px; }
}
