/* ═══════════════════════════════════════════════════════════════════
   TNT — AP Java Developer Studio
   Theme Stylesheet  ·  tnt-theme-apjava.css

   WHAT THIS FILE DOES:
   All color decisions for the AP Java Developer Studio page live here.
   The base file (tnt-base.css) contains component structure.
   ═══════════════════════════════════════════════════════════════════ */


/* ─── DESIGN TOKENS ──────────────────────────────────────────────── */
:root {
    /* Primary course color: AP Java blue */
    --accent:        #5eb3d6;
    --accent-rgb:    94, 179, 214;
    --accent-dark:   #3a90b5;
    --accent-light:  #8fd0e8;

    /* Page backgrounds */
    --page-bg:       #080d1a;
    --page-mid:      #0d1535;
    --page-tint:     #0a1528;

    /* Navbar */
    --navbar-bg:     rgba(8, 13, 26, 0.95);
}


/* ─── NAVBAR & HERO ──────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #080d1a 0%, #0d1535 50%, #0a1528 100%);
}


/* ─── SECTION BACKGROUNDS ────────────────────────────────────────── */
.exam-section     { background: linear-gradient(180deg, #080d1a 0%, #0d1535 100%); }
.builds-section   { background: linear-gradient(180deg, #0d1535 0%, #080d1a 100%); }
.tools-section    { background: #0d1535; }
.journey-section  { background: linear-gradient(135deg, #0a1528 0%, #080d1a 100%); }
.spark-section    { background: linear-gradient(135deg, #0d1535, #1a1a3e); }
.inaction-section { background: linear-gradient(180deg, #080d1a 0%, #0d1535 100%); }
.pathway-section  { background: #080d1a; }
.cta-section      { background: linear-gradient(135deg, #0a1528, #0d1535); }


/* ─── AP EXAM SECTION ────────────────────────────────────────────── */
/* Unique to the AP Java course page — shows exam unit breakdown       */
.exam-unit-card {
    background: rgba(94,179,214,0.06);
    border: 1px solid rgba(94,179,214,0.25);
    border-radius: 16px;
    padding: 28px 22px;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.exam-unit-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;
}

.exam-unit-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(94,179,214,0.1);
}

.exam-unit-card:hover::before { transform: scaleX(1); }

.unit-num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.exam-unit-card h3 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #f8f9fa;
}

.weight-bar-wrap {
    background: rgba(255,255,255,0.06);
    border-radius: 20px;
    height: 8px;
    margin: 12px 0 6px;
    overflow: hidden;
}

/* Progress bar — fills to a width set by inline style */
.weight-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 20px;
    transition: width 1.2s ease;
}

.weight-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}

/* College-Board style practice rows */
.ct-practice-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(94,179,214,0.12);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: border-color 0.3s, background 0.3s;
}

.ct-practice-row:hover {
    border-color: rgba(94,179,214,0.4);
    background: rgba(94,179,214,0.04);
}

.ct-num {
    min-width: 36px;
    height: 36px;
    background: rgba(94,179,214,0.15);
    border: 1px solid rgba(94,179,214,0.35);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--accent);
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
}

.ct-content h4 {
    font-weight: 700;
    color: #f8f9fa;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.ct-content p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.ct-weight {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 4px;
}


/* ─── SPARK+AI BALANCE BOX ───────────────────────────────────────── */
/* Unique to AP Java — shows what SPARK IS vs. what it isn't */
.balance-box {
    background: linear-gradient(135deg, rgba(94,179,214,0.08), rgba(244,229,66,0.06));
    border: 1px solid rgba(94,179,214,0.3);
    border-radius: 16px;
    padding: 32px;
}

.balance-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.balance-row.yes {
    background: rgba(144,195,86,0.08);
    border-left: 3px solid #90c356;    /* Foundation green */
}

.balance-row.no {
    background: rgba(255,107,53,0.08);
    border-left: 3px solid #ff6b35;    /* warning orange */
}

.balance-row p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

/* Small italic note under SPARK cards in the AP Java page */
.spark-note {
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: 8px;
    font-style: italic;
    opacity: 0.85;
}


/* ─── SPARK CARD OVERRIDES ───────────────────────────────────────── */
/*
   On the AP Java page, the S.P.A.R.K. section card hover border
   should be the S.P.A.R.K. brand yellow, not the course blue.
   The base uses var(--accent) which is blue here — override it.
*/
.spark-card:hover { border-color: var(--spark-yellow); }


/* ─── SYNTAX HIGHLIGHTING ────────────────────────────────────────── */
.jt { color: var(--accent-light); }   /* Java type token */


/* ─── META BADGE OVERRIDE ────────────────────────────────────────── */
/*
   The AP Java page uses yellow for meta-badges (S.P.A.R.K. branding),
   not the course blue. Override the base rule.
*/
.meta-badge {
    background: rgba(244,229,66,0.08);
    border-color: rgba(244,229,66,0.2);
    color: var(--spark-yellow);
}


/* ─── PROMPT TAG VARIANTS ────────────────────────────────────────── */
/* AP Java: blue (initial), yellow (follow-up), green (validate) */
.prompt-tag.initial  {
    background: rgba(94,179,214,0.15);
    color: var(--accent);
    border: 1px solid rgba(94,179,214,0.3);
}
.prompt-tag.followup {
    background: rgba(244,229,66,0.12);
    color: #f4e542;
    border: 1px solid rgba(244,229,66,0.3);
}
.prompt-tag.validate {
    background: rgba(144,195,86,0.12);
    color: #90c356;
    border: 1px solid rgba(144,195,86,0.3);
}

.prompt-body .user-tag { color: var(--accent); }              /* "YOU ASKED:" */
.prompt-body em        { color: var(--accent-light); }         /* keyword highlights */


/* ─── PREREQUISITE BADGE ─────────────────────────────────────────── */
/* AP Java prereq badge uses yellow (S.P.A.R.K. brand), not course blue */
.prereq-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(244,229,66,0.1);
    border: 1px solid rgba(244,229,66,0.3);
    border-radius: 10px;
    padding: 14px 22px;
    font-size: 0.9rem;
    color: #f4e542;
}


/* ─── AP OFFICIAL BADGE ──────────────────────────────────────────── */
/* Unique to AP Java — "College Board Authorized" badge */
.ap-official-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(94,179,214,0.1);
    border: 1px solid rgba(94,179,214,0.35);
    border-radius: 10px;
    padding: 14px 22px;
    font-size: 0.9rem;
    color: var(--accent);
}


/* ─── CTA BUTTON ─────────────────────────────────────────────────── */
.btn-ap-java {
    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-ap-java:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 35px rgba(var(--accent-rgb), 0.4);
    color: var(--page-bg);
}

.btn-outline-ap-java {
    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-ap-java:hover {
    background: var(--accent);
    color: var(--page-bg);
}


/* ─── FOOTER OVERRIDE ────────────────────────────────────────────── */
footer { background: #050a14; }


/* ─── UTILITY CLASSES ────────────────────────────────────────────── */
.text-ap-java { color: var(--accent); }
.text-accent  { color: #f4e542; }    /* yellow */
.text-accent2 { color: #90c356; }    /* green  */
