/* LumorowLMS — IELTS Speaking Part 2 Frontend Styles */

.llmsb-spk-block {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--llmsb-primary) 0%, var(--llmsb-primary-dk) 100%);
    padding: 0;
}

/* ── Header ───────────────────────────────────────── */
.llmsb-spk-header {
    text-align: center;
    padding: 28px 20px 20px;
    color: #fff;
}
.llmsb-spk-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
}
.llmsb-spk-subtitle {
    font-size: 1.1rem;
    opacity: .9;
    margin: 0;
    color: #fff;
}

/* ── Instruction bar ──────────────────────────────── */
.llmsb-spk-instruction {
    background: #fff;
    margin: 0 20px 16px;
    padding: 16px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1rem;
    color: var(--llmsb-dark);
    line-height: 1.55;
    box-shadow: 0 4px 6px rgba(0,0,0,.08);
    transition: opacity .3s;
}
.llmsb-spk-instruction.hidden { display: none; }

/* ── Card wrapper ─────────────────────────────────── */
.llmsb-spk-card-wrap {
    position: relative;
    padding: 0 20px 24px;
}

/* ── Start button ─────────────────────────────────── */
.llmsb-spk-start-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    z-index: 10;
    background: #22c55e;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
    transition: background .15s, transform .1s;
}
.llmsb-spk-start-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

/* ── Task card ────────────────────────────────────── */
.llmsb-spk-card {
    background: #fff;
    padding: 36px 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    transition: filter .5s ease;
}
.llmsb-spk-card.blurred {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.llmsb-spk-task-title {
    color: var(--llmsb-primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--llmsb-primary);
}

.llmsb-spk-task-content {
    line-height: 2;
    font-size: 1.05rem;
    color: var(--llmsb-dark);
}
.llmsb-spk-say {
    margin-bottom: 12px;
    font-weight: 500;
}

.llmsb-spk-bullets {
    list-style: none;
    padding-left: 20px;
    margin: 0 0 8px;
}
.llmsb-spk-bullets li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 12px;
    font-size: 1.05rem;
}
.llmsb-spk-bullets li::before {
    content: "•";
    color: var(--llmsb-primary);
    font-weight: 700;
    font-size: 1.4em;
    position: absolute;
    left: -12px;
    top: -3px;
}

.llmsb-spk-final {
    margin-top: 18px;
    font-size: 1.05rem;
}

/* ── Timer display ────────────────────────────────── */
.llmsb-spk-timer {
    background: #333;
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    margin-top: 18px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 4px 8px rgba(0,0,0,.2);
    transition: background .3s;
}
.llmsb-spk-timer.hidden { display: none; }

.llmsb-spk-timer-text {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.llmsb-spk-timer.preparation { background: #f59e0b; }
.llmsb-spk-timer.speaking { background: #22c55e; }
.llmsb-spk-timer.finished { background: var(--llmsb-primary); }
.llmsb-spk-timer.warn .llmsb-spk-timer-text {
    animation: llmsbSpkBlink .8s ease-in-out infinite;
}
@keyframes llmsbSpkBlink { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── Difficulty label ─────────────────────────────── */
.llmsb-spk-diff-label {
    text-align: center;
    padding: 0 20px 20px;
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 600px) {
    .llmsb-spk-title { font-size: 1.5rem; }
    .llmsb-spk-card { padding: 24px 18px; }
    .llmsb-spk-task-title { font-size: 1.3rem; }
    .llmsb-spk-task-content { font-size: .95rem; }
    .llmsb-spk-timer-text { font-size: 1.8rem; }
    .llmsb-spk-start-btn { padding: 10px 20px; font-size: .9rem; right: 28px; }
}
