/* ================================================================
   Reading Comprehension Lab — Styles
   ================================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

/* Bootstrap (injected by the site header) sets html { font-size:10px }
   and body { font-size:14px }, which collapses our rem-based sizing.
   Restore browser defaults so rem units render at the intended scale. */
html:has(body.rc-body) { font-size: 16px !important; }
body.rc-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.rc-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: #fef9f0;
    color: #3d2c1e;
    -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */
.rc-nav {
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
    padding: 0 24px;
    box-shadow: 0 2px 16px rgba(249, 115, 22, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}
.rc-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.rc-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.3px;
}
.rc-nav-brand:hover { color: #fff; text-decoration: none; }
.rc-nav-icon { flex-shrink: 0; }
.rc-nav-links { display: flex; gap: 8px; }
.rc-nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.rc-nav-link:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
}
.rc-nav-link i { margin-right: 4px; }

/* --- Breadcrumbs --- */
.rc-breadcrumb-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px 0;
}
.rc-breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 10px 18px;
    margin: 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    font-size: 0.9rem;
}
.rc-breadcrumb li { display: inline; }
.rc-breadcrumb li + li::before {
    content: "\203A";
    color: #d97706;
    font-weight: 600;
    padding: 0 8px;
}
.rc-breadcrumb a {
    color: #d97706;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.rc-breadcrumb a:hover { color: #b45309; }
.rc-breadcrumb .active { color: #78716c; font-weight: 500; }

/* --- Main Content --- */
.rc-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    min-height: calc(100vh - 160px);
}

/* --- Footer --- */
.rc-footer {
    text-align: center;
    padding: 20px;
    color: #a8a29e;
    font-size: 0.8rem;
}

/* ================================================================
   LANDING PAGE — Year Cards
   ================================================================ */
.rc-landing-header {
    text-align: center;
    margin-bottom: 40px;
}
.rc-landing-header h1 {
    font-family: inherit;
    font-weight: 800;
    font-size: 2.2rem;
    color: #92400e;
    margin: 0 0 8px;
}
.rc-landing-header p {
    color: #78716c;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.rc-year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.rc-year-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}
.rc-year-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
    border-color: #fed7aa;
    text-decoration: none;
    color: inherit;
}
.rc-year-card-band {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
}
.rc-year-card-band.y1 { background: linear-gradient(90deg, #34d399, #6ee7b7); }
.rc-year-card-band.y2 { background: linear-gradient(90deg, #60a5fa, #93c5fd); }
.rc-year-card-band.y3 { background: linear-gradient(90deg, #f472b6, #f9a8d4); }
.rc-year-card-band.y4 { background: linear-gradient(90deg, #a78bfa, #c4b5fd); }
.rc-year-card-band.y5 { background: linear-gradient(90deg, #fb923c, #fdba74); }
.rc-year-card-band.y6 { background: linear-gradient(90deg, #f87171, #fca5a5); }

.rc-year-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.rc-year-label {
    font-family: inherit;
    font-weight: 800;
    font-size: 1.5rem;
    color: #292524;
}
.rc-year-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: #fef3c7;
    color: #92400e;
}
.rc-year-desc {
    color: #78716c;
    font-size: 0.92rem;
    margin-bottom: 18px;
    line-height: 1.5;
}
.rc-year-progress-bar {
    background: #f5f0eb;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}
.rc-year-progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    transition: width 0.6s ease;
}
.rc-year-progress-text {
    font-size: 0.8rem;
    color: #a8a29e;
    font-weight: 600;
}

/* ================================================================
   YEAR PAGE — Passage Cards (Journey Map)
   ================================================================ */
.rc-year-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}
.rc-year-header h1 {
    font-family: inherit;
    font-weight: 800;
    font-size: 1.8rem;
    color: #292524;
    margin: 0;
}
.rc-year-header .rc-year-subtitle {
    color: #78716c;
    font-size: 0.95rem;
}

.rc-journey {
    position: relative;
    padding-left: 40px;
}
.rc-journey::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #fed7aa, #fef3c7);
    border-radius: 3px;
}

.rc-passage-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}
.rc-passage-card:hover:not(.rc-locked) {
    transform: translateX(4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    border-color: #fed7aa;
    text-decoration: none;
    color: inherit;
}

/* Journey dot on the timeline */
.rc-passage-dot {
    position: absolute;
    left: -32px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.rc-dot-locked { background: #d6d3d1; }
.rc-dot-unlocked { background: #60a5fa; }
.rc-dot-assigned { background: #a78bfa; }
.rc-dot-skipped { background: #fbbf24; }
.rc-dot-completed { background: #34d399; }

.rc-passage-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.rc-num-locked { background: #f5f5f4; color: #a8a29e; }
.rc-num-unlocked { background: #eff6ff; color: #3b82f6; }
.rc-num-assigned { background: #f3e8ff; color: #7c3aed; }
.rc-num-skipped { background: #fef9c3; color: #ca8a04; }
.rc-num-completed { background: #ecfdf5; color: #059669; }

.rc-passage-info { flex: 1; min-width: 0; }
.rc-passage-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #292524;
    margin: 0 0 4px;
}
.rc-passage-meta {
    font-size: 0.8rem;
    color: #a8a29e;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.rc-passage-meta span { display: inline-flex; align-items: center; gap: 4px; }

.rc-passage-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.rc-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rc-badge-locked { background: #f5f5f4; color: #a8a29e; }
.rc-badge-unlocked { background: #dbeafe; color: #2563eb; }
.rc-badge-assigned { background: #ede9fe; color: #6d28d9; }
.rc-badge-skipped { background: #fef9c3; color: #a16207; }
.rc-badge-completed { background: #d1fae5; color: #047857; }

.rc-score-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.rc-score-low { background: #fef2f2; color: #dc2626; border: 2px solid #fecaca; }
.rc-score-mid { background: #fffbeb; color: #d97706; border: 2px solid #fde68a; }
.rc-score-high { background: #ecfdf5; color: #059669; border: 2px solid #a7f3d0; }

.rc-locked {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.rc-locked .rc-passage-title { color: #a8a29e; }

/* Lock icon */
.rc-lock-icon {
    width: 28px;
    height: 28px;
    color: #d6d3d1;
    flex-shrink: 0;
}

/* ================================================================
   LAB VIEW — Reading Lab
   ================================================================ */
.rc-lab-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

/* Passage panel */
.rc-passage-panel {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    min-height: 400px;
}
.rc-passage-image {
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
}
.rc-passage-image img,
.rc-passage-image svg {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}
.rc-passage-heading {
    font-family: inherit;
    font-weight: 800;
    font-size: 1.6rem;
    color: #292524;
    margin: 0 0 8px;
}
.rc-passage-genre {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: #fef3c7;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Segments */
.rc-segment {
    margin-bottom: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #fffbf5;
    border-left: 4px solid #fed7aa;
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}
.rc-segment.rc-visible {
    opacity: 1;
    transform: translateY(0);
}
.rc-segment p { margin: 0 0 8px; }
.rc-segment p:last-of-type { margin: 0; }

.rc-segment-image {
    margin: 12px 0;
    text-align: center;
}

/* Per-segment "Read to me" button */
.rc-read-to-me-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 16px;
    background: #f5f5f4;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: #78716c;
    transition: all 0.2s;
    margin-top: 10px;
}
.rc-read-to-me-btn:hover { background: #e7e5e4; color: #44403c; }
.rc-read-to-me-btn.rc-reading {
    background: #dbeafe;
    color: #2563eb;
}

/* Parts of Speech toolbar */
.rc-pos-toolbar {
    background: #fff;
    border: 2px solid #e7e5e4;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
}
.rc-pos-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #78716c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.rc-pos-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.rc-pos-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 16px;
    border: 1.5px solid #e7e5e4;
    background: #fff;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: #44403c;
    transition: all 0.15s;
}
.rc-pos-btn:hover { border-color: #a8a29e; }
.rc-pos-btn.rc-pos-active { border-color: #44403c; background: #f5f5f4; box-shadow: 0 0 0 2px rgba(0,0,0,0.08); }
.rc-pos-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.rc-pos-actions {
    display: flex;
    gap: 8px;
}
.rc-pos-action-btn {
    padding: 5px 12px;
    border-radius: 14px;
    border: 1.5px solid #e7e5e4;
    background: #fff;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: #78716c;
    transition: all 0.15s;
}
.rc-pos-action-btn:hover { border-color: #a8a29e; color: #44403c; }

/* Clickable words in POS mode */
.rc-word { cursor: default; border-radius: 3px; transition: background 0.15s, border-color 0.15s; padding: 1px 0; }
.rc-pos-mode .rc-word { cursor: pointer; }
.rc-pos-mode .rc-word:hover { background: #f5f5f4; }

/* POS highlight colours */
.rc-word[data-pos="common_noun"] { background: #dbeafe; border-bottom: 2px solid #3b82f6; }
.rc-word[data-pos="proper_noun"] { background: #ede9fe; border-bottom: 2px solid #8b5cf6; }
.rc-word[data-pos="pronoun"] { background: #fce7f3; border-bottom: 2px solid #ec4899; }
.rc-word[data-pos="verb"] { background: #fee2e2; border-bottom: 2px solid #ef4444; }
.rc-word[data-pos="adjective"] { background: #dcfce7; border-bottom: 2px solid #22c55e; }
.rc-word[data-pos="adverb"] { background: #ffedd5; border-bottom: 2px solid #f97316; }
.rc-word[data-pos="preposition"] { background: #ccfbf1; border-bottom: 2px solid #14b8a6; }
.rc-word[data-pos="conjunction"] { background: #fef3c7; border-bottom: 2px solid #a3842a; }
.rc-word[data-pos="interjection"] { background: #ffe4e6; border-bottom: 2px solid #e11d48; }

/* Check results */
.rc-word.rc-pos-correct { box-shadow: 0 0 0 2px #22c55e; }
.rc-word.rc-pos-wrong { box-shadow: 0 0 0 2px #ef4444; text-decoration: line-through; }
.rc-word.rc-pos-missed { opacity: 0.5; }

/* Continue button */
.rc-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
    margin-top: 16px;
}
.rc-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.4);
}
.rc-continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Start reading button */
.rc-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.3);
    margin-top: 24px;
}
.rc-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.4);
}

/* --- Coach panel --- */
.rc-coach-panel {
    position: sticky;
    top: 80px;
}
.rc-coach-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
}
.rc-mascot-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
}
.rc-mascot-container svg {
    width: 100%;
    height: 100%;
}

/* Speech bubble */
.rc-speech-bubble {
    position: relative;
    background: #fffbf5;
    border: 2px solid #fed7aa;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #44403c;
    text-align: left;
    animation: rc-fadeIn 0.4s ease;
}
.rc-speech-bubble::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fed7aa;
}

/* Interaction MCQ in coach panel */
.rc-interaction-options {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    text-align: left;
}
.rc-interaction-option {
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 2px solid #e7e5e4;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rc-interaction-option:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}
.rc-interaction-option.rc-selected {
    border-color: #f59e0b;
    background: #fef3c7;
}
.rc-interaction-option.rc-correct {
    border-color: #34d399;
    background: #ecfdf5;
}
.rc-interaction-option.rc-incorrect {
    border-color: #f87171;
    background: #fef2f2;
}
.rc-option-letter {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f5f5f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #78716c;
    flex-shrink: 0;
}

.rc-interaction-submit {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
.rc-interaction-submit:hover { opacity: 0.9; }
.rc-interaction-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Interaction feedback */
.rc-feedback {
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: rc-fadeIn 0.3s ease;
}
.rc-feedback-correct {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.rc-feedback-incorrect {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Progress indicator */
.rc-progress-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    justify-content: center;
}
.rc-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e7e5e4;
    transition: all 0.3s;
}
.rc-progress-dot.rc-done { background: #34d399; }
.rc-progress-dot.rc-current { background: #f59e0b; transform: scale(1.3); }

/* ================================================================
   COMPREHENSION CHECK — End-of-passage MCQs
   ================================================================ */
.rc-check-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px dashed #fed7aa;
}
.rc-check-header {
    text-align: center;
    margin-bottom: 24px;
}
.rc-check-header h2 {
    font-family: inherit;
    font-weight: 800;
    font-size: 1.4rem;
    color: #292524;
    margin: 0 0 4px;
}
.rc-check-header p {
    color: #78716c;
    font-size: 0.9rem;
}

.rc-question-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 2px solid #f5f0eb;
    animation: rc-fadeIn 0.4s ease;
}
.rc-question-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.rc-question-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #292524;
    margin-bottom: 16px;
    line-height: 1.6;
}
.rc-question-skill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    background: #e7e5e4;
    color: #78716c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.rc-mcq-options {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rc-mcq-option {
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 2px solid #e7e5e4;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.rc-mcq-option:hover { border-color: #f59e0b; background: #fffbeb; }
.rc-mcq-option.rc-selected { border-color: #f59e0b; background: #fef3c7; }
.rc-mcq-option.rc-correct { border-color: #34d399; background: #ecfdf5; }
.rc-mcq-option.rc-incorrect { border-color: #f87171; background: #fef2f2; }

.rc-question-explanation {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
    font-size: 0.9rem;
    line-height: 1.6;
    animation: rc-fadeIn 0.3s ease;
}

/* Score counter during check */
.rc-check-score {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #78716c;
    margin: 16px 0;
}
.rc-check-score strong { color: #f97316; }

/* ================================================================
   PASSAGE COMPLETE — Score Summary
   ================================================================ */
.rc-complete {
    text-align: center;
    padding: 40px 24px;
    animation: rc-fadeIn 0.5s ease;
}
.rc-complete-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}
.rc-complete h2 {
    font-family: inherit;
    font-weight: 800;
    font-size: 1.8rem;
    color: #292524;
    margin: 0 0 8px;
}
.rc-complete-score {
    font-size: 3rem;
    font-weight: 800;
    margin: 16px 0;
}
.rc-complete-score.rc-pass { color: #059669; }
.rc-complete-score.rc-fail { color: #dc2626; }

.rc-complete-message {
    font-size: 1.05rem;
    color: #78716c;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.rc-complete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.rc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.rc-btn:hover { text-decoration: none; }
.rc-btn-primary {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #fff;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}
.rc-btn-primary:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.4);
}
.rc-btn-secondary {
    background: #f5f5f4;
    color: #44403c;
}
.rc-btn-secondary:hover {
    background: #e7e5e4;
    color: #44403c;
}

/* Unlock celebration */
.rc-unlock-banner {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #a7f3d0;
    border-radius: 16px;
    padding: 16px 24px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #065f46;
    animation: rc-slideUp 0.5s ease;
}

/* ================================================================
   LOCKED / EXPIRED PAGES
   ================================================================ */
.rc-status-page {
    text-align: center;
    padding: 60px 24px;
}
.rc-status-page-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.4;
}
.rc-status-page h2 {
    font-family: inherit;
    font-weight: 700;
    font-size: 1.5rem;
    color: #44403c;
    margin-bottom: 12px;
}
.rc-status-page p {
    color: #78716c;
    max-width: 480px;
    margin: 0 auto 24px;
}

/* ================================================================
   DASHBOARD
   ================================================================ */
.rc-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.rc-dashboard-header h1 {
    font-family: inherit;
    font-weight: 800;
    font-size: 1.8rem;
    color: #292524;
    margin: 0;
}

.rc-student-select {
    padding: 8px 16px;
    border: 2px solid #e7e5e4;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    background: #fff;
    color: #44403c;
    cursor: pointer;
}

.rc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.rc-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    text-align: center;
}
.rc-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #f97316;
}
.rc-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a8a29e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Assignment cards */
.rc-assignment-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid #a78bfa;
}
.rc-assignment-card.rc-overdue {
    border-left-color: #f87171;
    background: #fffbfb;
}
.rc-assignment-card.rc-completed-assignment {
    border-left-color: #34d399;
}
.rc-assignment-info { flex: 1; }
.rc-assignment-title {
    font-weight: 700;
    font-size: 1rem;
    color: #292524;
    margin-bottom: 4px;
}
.rc-assignment-meta {
    font-size: 0.8rem;
    color: #a8a29e;
}
.rc-assignment-actions {
    display: flex;
    gap: 8px;
}
.rc-btn-small {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 20px;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes rc-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes rc-slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes rc-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.rc-mascot-bounce { animation: rc-bounce 2s ease-in-out infinite; }

/* Confetti burst for passage complete */
@keyframes rc-confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-200px) rotate(720deg); opacity: 0; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .rc-lab-container {
        grid-template-columns: 1fr;
    }
    .rc-coach-panel {
        position: static;
        order: -1;
    }
    .rc-coach-card {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }
    .rc-mascot-container {
        width: 80px;
        height: 80px;
        margin: 0;
        flex-shrink: 0;
    }
}

/* ================================================================
   LANDING PAGE — Info Sections, FAQ, POS Evolution
   ================================================================ */

/* POS evolution badges on year cards */
.rc-pos-evolution {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
}
.rc-pos-evolution-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #a8a29e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: 100%;
    margin-bottom: 2px;
}
.rc-pos-evolution-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1.5px solid;
    background: #fff;
    white-space: nowrap;
}
.rc-pos-new-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
}

/* Info sections */
.rc-info-section {
    margin-top: 56px;
    margin-bottom: 24px;
}
.rc-info-section h2 {
    font-family: inherit;
    font-weight: 800;
    font-size: 1.6rem;
    color: #292524;
    text-align: center;
    margin: 0 0 8px;
}
.rc-info-intro {
    text-align: center;
    color: #78716c;
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto 28px;
}
.rc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 28px;
}
.rc-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    text-align: center;
}
.rc-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: #f97316;
}
.rc-info-card h3 {
    font-family: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    color: #292524;
    margin: 0 0 8px;
}
.rc-info-card p {
    font-size: 0.88rem;
    color: #78716c;
    margin: 0;
    line-height: 1.55;
}

/* Progression table */
.rc-progression-table {
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.rc-progression-row {
    display: grid;
    grid-template-columns: 140px 1fr 1fr;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #f5f0eb;
}
.rc-progression-row:last-child { border-bottom: none; }
.rc-progression-header {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    font-weight: 700;
    font-size: 0.85rem;
    color: #92400e;
}
.rc-progression-col {
    padding: 16px 20px;
    font-size: 0.88rem;
    color: #44403c;
    line-height: 1.55;
    border-right: 1px solid #f5f0eb;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 5px;
}
.rc-progression-col:last-child { border-right: none; }

/* FAQ */
.rc-faq-list {
    max-width: 800px;
    margin: 28px auto 0;
}
.rc-faq-item {
    background: #fff;
    border-radius: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}
.rc-faq-item summary {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #292524;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rc-faq-item summary::-webkit-details-marker { display: none; }
.rc-faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: #a8a29e;
    transition: transform 0.2s;
}
.rc-faq-item[open] summary::after {
    content: '-';
}
.rc-faq-item p {
    padding: 0 24px 18px;
    margin: 0;
    font-size: 0.9rem;
    color: #57534e;
    line-height: 1.65;
}

/* Year page — intro and POS bar */
.rc-year-intro {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.rc-year-intro p {
    font-size: 0.92rem;
    color: #57534e;
    line-height: 1.6;
    margin: 0 0 16px;
}
.rc-year-pos-bar {
    border-top: 1px solid #f5f0eb;
    padding-top: 14px;
}
.rc-year-pos-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #78716c;
    margin-bottom: 8px;
    display: block;
}
.rc-year-pos-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .rc-nav-inner { height: 52px; }
    .rc-nav-brand { font-size: 1rem; }
    .rc-nav-links { gap: 4px; }
    .rc-nav-link { padding: 4px 10px; font-size: 0.8rem; }
    .rc-main { padding: 16px; }
    .rc-landing-header h1 { font-size: 1.6rem; }
    .rc-year-grid { grid-template-columns: 1fr; gap: 16px; }
    .rc-passage-panel { padding: 20px; }
    .rc-passage-heading { font-size: 1.3rem; }
    .rc-journey { padding-left: 32px; }
    .rc-passage-dot { left: -24px; width: 16px; height: 16px; }
    .rc-year-header h1 { font-size: 1.4rem; }

    .rc-coach-card { flex-direction: column; text-align: center; }
    .rc-mascot-container { width: 100px; height: 100px; }

    .rc-info-grid { grid-template-columns: 1fr 1fr; }
    .rc-progression-row { grid-template-columns: 1fr; }
    .rc-progression-header { display: none; }
    .rc-progression-col { border-right: none; border-bottom: 1px solid #f5f0eb; }
    .rc-progression-col:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
    .rc-nav-brand span { display: none; }
    .rc-passage-meta { flex-direction: column; gap: 4px; }
    .rc-complete-actions { flex-direction: column; }
    .rc-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .rc-info-grid { grid-template-columns: 1fr; }
}
