/**
 * LumorowLMS — IELTS Complete Speaking Test (frontend, v3.5.86)
 */

.llmsb-iel-sc-block {
    position: relative;
    background: #fdfdfd;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 0 2rem;
    min-height: 540px;
    display: flex;
    flex-direction: column;
}
.llmsb-iel-sc-not-ready {
    padding: 32px;
    text-align: center;
    color: #6b7280;
    background: #fafafa;
    border-radius: 12px;
    font-style: italic;
}

/* ── Top chrome ─────────────────────────────────────── */
.llmsb-iel-sc-chrome {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: #1c1c1c;
    color: #FFF8EE;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
}
.llmsb-iel-sc-chrome-left, .llmsb-iel-sc-chrome-right { display: flex; align-items: center; gap: 8px; }
.llmsb-iel-sc-chrome-right { justify-content: flex-end; }
.llmsb-iel-sc-chrome-center { text-align: center; opacity: 0.85; font-size: 12px; }
.llmsb-iel-sc-chrome-sep { opacity: 0.55; }

/* ── Stage ──────────────────────────────────────────── */
.llmsb-iel-sc-stage {
    flex: 1;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    background: #fff;
}
.llmsb-iel-sc-panel {
    max-width: 720px;
    text-align: left;
}
.llmsb-iel-sc-panel-eye {
    font-family: monospace;
    font-size: 11px;
    color: #c45e04;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    font-weight: 700;
}
.llmsb-iel-sc-panel-text {
    font-size: 20px;
    line-height: 1.5;
    color: #1c1c1c;
}
.llmsb-iel-sc-panel-examiner .llmsb-iel-sc-panel-text { font-style: italic; color: #4b5563; }
.llmsb-iel-sc-panel-question .llmsb-iel-sc-panel-text { font-weight: 600; }

/* v3.5.87 — Listen-only indicator (question/examiner text hidden). */
.llmsb-iel-sc-panel-listen {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 36px 24px;
    text-align: center;
}
.llmsb-iel-sc-listen-icon {
    font-size: 56px; line-height: 1;
    animation: llmsb-sc-listen-bob 1.2s ease-in-out infinite;
}
@keyframes llmsb-sc-listen-bob {
    50% { transform: scale(1.08); }
}
.llmsb-iel-sc-listen-label {
    font-size: 16px; font-weight: 700;
    color: #4b5563;
}

/* Repeat / rephrase button (Part 1 + Part 3 questions only). */
.llmsb-iel-sc-repeat {
    margin-top: 22px;
    background: #fff;
    color: #1c1c1c;
    border: 2px solid #1c1c1c;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px; font-weight: 700;
    cursor: pointer;
    box-shadow: 2px 2px 0 #1c1c1c;
    transition: transform 0.12s, box-shadow 0.12s;
    display: block; margin-left: auto; margin-right: auto;
}
.llmsb-iel-sc-repeat:hover:not(:disabled) {
    transform: translate(-1.5px, -1.5px);
    box-shadow: 4px 4px 0 #1c1c1c;
}
.llmsb-iel-sc-repeat:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
    box-shadow: none;
    cursor: not-allowed;
}
.llmsb-iel-sc-rec-indicator {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    color: #b91c1c;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    animation: llmsb-sc-pulse 1.2s ease-in-out infinite;
}
@keyframes llmsb-sc-pulse {
    50% { opacity: 0.55; }
}

/* ── v3.5.88 — Combined Part 2 panel (sticky cue card + dynamic
       prep / speak action area below) ─────────────────────────── */
.llmsb-iel-sc-panel-part2 {
    display: flex; flex-direction: column; gap: 22px;
    max-width: 640px; margin: 0 auto;
}
.llmsb-iel-sc-cuecard-sticky {
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    border-radius: 12px;
    padding: 22px 26px;
}
.llmsb-iel-sc-cuecard-sticky .llmsb-iel-sc-cuecard-title {
    font-size: 11px;
    letter-spacing: 1.4px;
    color: #92400e;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.llmsb-iel-sc-cuecard-sticky .llmsb-iel-sc-cuecard-prompt {
    font-size: 18px; font-weight: 700; color: #1c1c1c;
    margin: 0 0 12px;
}
.llmsb-iel-sc-cuecard-sticky .llmsb-iel-sc-cuecard-label {
    font-size: 13px; color: #6b7280; margin: 0 0 6px;
}
.llmsb-iel-sc-cuecard-sticky .llmsb-iel-sc-cuecard-bullets {
    margin: 0; padding-left: 22px; color: #1c1c1c;
    line-height: 1.55; font-size: 15px;
}
.llmsb-iel-sc-p2-action {
    text-align: center;
    padding: 16px 22px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.llmsb-iel-sc-p2-phase-label {
    font-size: 11px; letter-spacing: 1.4px;
    color: #6b7280; text-transform: uppercase;
    font-weight: 700; margin-bottom: 6px;
}
.llmsb-iel-sc-p2-clock {
    font-size: 56px; font-weight: 800;
    color: #1c1c1c;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

/* ── Cue card panel (legacy single-card kind — kept for safety) ── */
.llmsb-iel-sc-panel-cuecard {
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    border-radius: 12px;
    padding: 28px 32px;
    max-width: 560px;
    margin: 0 auto;
}
.llmsb-iel-sc-cuecard-title {
    font-size: 11px;
    letter-spacing: 1.4px;
    color: #92400e;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.llmsb-iel-sc-cuecard-prompt {
    font-size: 20px;
    font-weight: 700;
    color: #1c1c1c;
    margin: 0 0 16px;
}
.llmsb-iel-sc-cuecard-label {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 8px;
}
.llmsb-iel-sc-cuecard-bullets {
    margin: 0 0 22px;
    padding-left: 22px;
    color: #1c1c1c;
    line-height: 1.6;
    font-size: 16px;
}
.llmsb-iel-sc-cuecard-next {
    background: #F77205;
    color: #fff;
    border: 2.5px solid #1a1a1a;
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 3px 3px 0 #1a1a1a;
}
.llmsb-iel-sc-cuecard-next:hover {
    transform: translate(-1.5px, -1.5px);
    box-shadow: 5px 5px 0 #1a1a1a;
}

/* ── Prep timer panel ───────────────────────────────── */
.llmsb-iel-sc-panel-prep {
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}
.llmsb-iel-sc-prep-label {
    font-size: 12px;
    letter-spacing: 1.4px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}
.llmsb-iel-sc-prep-clock {
    font-size: 88px;
    font-weight: 800;
    color: #1c1c1c;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.llmsb-iel-sc-prep-help {
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
}

/* ── Footer + Stop button ──────────────────────────── */
.llmsb-iel-sc-footer {
    padding: 14px 18px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}
.llmsb-iel-sc-stop {
    background: #dc2626;
    color: #fff;
    border: 2.5px solid #1a1a1a;
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 3px 3px 0 #1a1a1a;
}
.llmsb-iel-sc-stop:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    box-shadow: none;
}
.llmsb-iel-sc-stop:not(:disabled):hover {
    transform: translate(-1.5px, -1.5px);
    box-shadow: 5px 5px 0 #1a1a1a;
}

/* ── Done panel ─────────────────────────────────────── */
.llmsb-iel-sc-panel-done {
    text-align: center;
}
.llmsb-iel-sc-panel-done h3 { margin: 0 0 10px; }

/* ── Launch overlay ─────────────────────────────────── */
.llmsb-iel-sc-pre {
    position: absolute; inset: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 50;
    padding: 24px;
}
.llmsb-iel-sc-block.is-started .llmsb-iel-sc-pre { display: none; }
.llmsb-iel-sc-pre-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 36px 44px;
    max-width: 760px;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.llmsb-iel-sc-pre-title {
    font-size: 28px;
    font-weight: 800;
    color: #1c1c1c;
    margin: 0 0 22px;
    text-align: center;
}
.llmsb-iel-sc-pre-body {
    font-size: 15px;
    line-height: 1.6;
    color: #1c1c1c;
    margin: 0 0 26px;
}
.llmsb-iel-sc-pre-body p { margin: 0 0 14px; }
.llmsb-iel-sc-pre-body p:last-child { margin-bottom: 0; }
.llmsb-iel-sc-begin {
    display: block;
    margin: 0 auto;
    background: #F77205;
    color: #fff;
    border: 2.5px solid #1a1a1a;
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 3px 3px 0 #1a1a1a;
    transition: transform 0.12s, box-shadow 0.12s;
}
.llmsb-iel-sc-begin:hover {
    transform: translate(-1.5px, -1.5px);
    box-shadow: 5px 5px 0 #1a1a1a;
}

/* ── Editor card (admin) ────────────────────────────── */
.llmsb-iel-sc-editor-card { font-family: inherit; }
