/*
 * rateTheInsultsStyles.css
 * TNT | Rate the Insults — Page-specific styles
 * Date: 07/18/2026
 *
 * Color palette:
 *   --quiz-teal    #1ABFBF  (primary accent — judgment/evaluation register)
 *   --quiz-amber   #E69F4D  (shared with Copilot Comedian — TNT warmth)
 *   Human jokes:   #fff9e6  (warm cream — same as Copilot Comedian)
 *   AI jokes:      #b0cce0  (metallic blue-silver — same as Copilot Comedian)
 *   Correct:       #27AE60  (green)
 *   Wrong:         #E74C3C  (red)
 */


:root {
    --quiz-teal:  #1ABFBF;
    --quiz-amber: #E69F4D;
}


/* ── Body ── */
body {
    background: #080c10;
    min-height: 100vh;
}


/* ── SPARK bar ── */
.spark-bar {
    background: #040a14;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.spark-bar a {
    color: var(--quiz-teal);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: 0.8rem;
}
.spark-bar a:hover { text-decoration: underline; }
.spark-bar span { color: rgba(255,255,255,0.4); font-size: 0.8rem; }


/* ── Hero ── */
#hero {
    background:
        linear-gradient(135deg, rgba(4,16,16,0.80) 0%, rgba(4,8,24,0.75) 60%, rgba(8,8,16,0.80) 100%),
        url('../images/robotComedian4.jpeg') center / cover no-repeat;
    min-height: 200px;
    padding: 3rem 1rem;
}
#hero .hero-title   { font-size: clamp(2rem, 5.5vw, 3rem); }
#hero .hero-subtitle { font-size: clamp(0.88rem, 2vw, 1.05rem); }


/* ── Shared quiz width container ── */
.quiz-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1rem 1.5rem;
}


/* ── Intro card ── */
.intro-card {
    background: rgba(26,191,191,0.06);
    border: 1px solid rgba(26,191,191,0.2);
    border-radius: 12px;
    padding: 1.6rem 1.8rem;
    margin-top: 2rem;
}
.intro-heading {
    font-family: var(--boogaloo);
    font-size: 1.4rem;
    color: var(--quiz-teal);
    margin-bottom: 0.7rem;
}
.intro-preamble {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
    font-style: italic;
}
.intro-steps {
    padding-left: 1.3rem;
    margin-bottom: 0.9rem;
}
.intro-steps li {
    color: rgba(255,255,255,0.8);
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}
.intro-warning {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 0.8rem;
}
.intro-warning a { color: var(--quiz-amber); }
.intro-warning a:hover { color: #fff; }


/* ── Progress bar ── */
.progress-section {
    max-width: 760px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
}
.progress-label {
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.4rem;
}
.progress {
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar {
    background: linear-gradient(90deg, var(--quiz-teal) 0%, #56e6e6 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    height: 100%;
}


/* ══════════════════════════════════════════════════════════════
   QUIZ CARDS
══════════════════════════════════════════════════════════════ */

.quiz-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.1rem 1.3rem 0.85rem;
    margin-bottom: 0.85rem;
    transition: border-color 0.25s, background 0.25s;
}

/* Card has a committed guess */
.quiz-card.answered {
    border-color: rgba(255,255,255,0.14);
}

/* Post-grade: correct */
.quiz-card.result-correct {
    border-color: rgba(39,174,96,0.55);
    background: rgba(39,174,96,0.04);
}

/* Post-grade: wrong */
.quiz-card.result-wrong {
    border-color: rgba(231,76,60,0.45);
    background: rgba(231,76,60,0.03);
}

/* ── Card header row ── */
.qcard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.qcard-num {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}
.qcard-badge { font-size: 1.05rem; line-height: 1; }
.result-icon-correct { color: #27AE60; }
.result-icon-wrong   { color: #E74C3C; }

/* ── Joke text ── */
.qcard-text {
    font-family: 'Bangers', cursive;
    font-size: clamp(1.1rem, 3.2vw, 1.65rem);
    color: #fff9e6;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.85);
    letter-spacing: 1.5px;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

/* After reveal: AI jokes shift to metallic blue-silver */
.quiz-card.revealed-ai    .qcard-text { color: #b0cce0; }
/* After reveal: human jokes stay warm cream (explicit for clarity) */
.quiz-card.revealed-human .qcard-text { color: #fff9e6; }

/* ── Controls row ── */
.qcard-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

/* ── Guess buttons ── */
.guess-group {
    display: flex;
    gap: 0.45rem;
}
.btn-guess {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    background: transparent;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.btn-guess:hover:not([disabled]) {
    border-color: rgba(255,255,255,0.38);
    color: rgba(255,255,255,0.8);
}
.btn-human.selected {
    background: rgba(230,159,77,0.18);
    border-color: var(--quiz-amber);
    color: var(--quiz-amber);
}
.btn-ai.selected {
    background: rgba(100,160,210,0.18);
    border-color: #b0cce0;
    color: #b0cce0;
}
.btn-guess[disabled] {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* ── Star rating ── */
.star-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.rate-label {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
}
.star-btn {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.13);
    cursor: pointer;
    transition: color 0.12s, transform 0.1s;
}
.star-btn:hover:not([disabled]) { transform: scale(1.25); }
.star-btn.filled { color: var(--quiz-amber); }
.star-btn[disabled] { cursor: default; pointer-events: none; }
.star-btn[disabled]:hover { transform: none; }

/* ── Reveal strip (shown after grading) ── */
.qcard-reveal {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
}
.reveal-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.reveal-tag-ai {
    background: rgba(100,160,210,0.15);
    color: #b0cce0;
    border: 1px solid rgba(100,160,210,0.3);
}
.reveal-tag-human {
    background: rgba(230,159,77,0.12);
    color: #e8c47a;
    border: 1px solid rgba(230,159,77,0.25);
}
.reveal-correction {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    font-weight: 400;
}


/* ══════════════════════════════════════════════════════════════
   GRADE BUTTON
══════════════════════════════════════════════════════════════ */

.grade-btn-wrapper {
    max-width: 760px;
    margin: 0.5rem auto 2.5rem;
    padding: 0 1rem;
    text-align: center;
}
.btn-grade {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    letter-spacing: 3px;
    color: #fff;
    background: linear-gradient(135deg, var(--quiz-teal) 0%, #0e8080 100%);
    border: none;
    border-radius: 50px;
    padding: 0.65rem 2.8rem 0.5rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 20px rgba(26,191,191,0.4);
    line-height: 1;
}
.btn-grade:hover:not([disabled]) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(26,191,191,0.6);
}
.btn-grade:active:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26,191,191,0.4);
}
.btn-grade[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}
.grade-btn-note {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-top: 0.6rem;
    margin-bottom: 0;
}


/* ══════════════════════════════════════════════════════════════
   GRADE RESULTS
══════════════════════════════════════════════════════════════ */

#gradeSection {
    max-width: 760px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}
.grade-box {
    background: linear-gradient(135deg, #040c0c 0%, #040814 100%);
    border: 2px solid rgba(26,191,191,0.35);
    border-radius: 14px;
    padding: 2.5rem 1.8rem 2rem;
    text-align: center;
}
.grade-letter {
    font-family: 'Bangers', cursive;
    font-size: clamp(4.5rem, 14vw, 8rem);
    color: var(--quiz-teal);
    letter-spacing: 4px;
    line-height: 1;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 16px rgba(26,191,191,0.45);
}
.grade-sublabel {
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.6rem;
}
.grade-score {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.5rem;
}
.grade-stars-row {
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
    letter-spacing: 2px;
}
.grade-star-filled { color: var(--quiz-amber); }
.grade-star-empty  { color: rgba(255,255,255,0.12); }
.grade-comment {
    color: rgba(255,249,230,0.75);
    font-style: italic;
    font-size: 0.96rem;
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto 1.8rem;
}

/* Stats grid */
.grade-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.grade-stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1rem 1.8rem;
    min-width: 150px;
}
.grade-stat-icon {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.3rem;
}
.grade-stat-label {
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.3rem;
}
.grade-stat-score {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--quiz-teal);
    line-height: 1;
    margin-bottom: 0.15rem;
}
.grade-stat-pct {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

/* Rating summary */
.rating-row {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.2rem;
    text-align: left;
}
.rating-row-label {
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.5rem;
    text-align: center;
}
.rating-cols {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}
.rating-col {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
}
.rating-note {
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255,255,255,0.38);
    margin-bottom: 0;
    text-align: center;
}

.grade-scroll-note {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.28);
    margin-bottom: 0;
}


/* ── Responsive ── */
@media (max-width: 500px) {
    .qcard-controls { flex-direction: column; align-items: flex-start; }
    .grade-stats { flex-direction: column; align-items: center; }
    .grade-stat-card { width: 100%; max-width: 260px; }
    .btn-grade { font-size: 1.5rem; padding: 0.55rem 1.8rem 0.42rem; }
}
