/* IELTS Demo — pure client mock UI (no real exam / AI / student data) */
.ielts-demo-body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  background: #eef2f6;
  color: #1e293b;
  direction: ltr;
  text-align: left;
}

.demo-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.demo-banner {
  background: linear-gradient(135deg, #0e7490, #0369a1);
  color: #fff;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(14, 116, 144, 0.25);
}
.demo-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.demo-banner-note {
  font-size: 0.8rem;
  opacity: 0.9;
}
.demo-banner a {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s;
}
.demo-banner a:hover { background: rgba(255,255,255,0.12); }

.demo-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.demo-header-title { font-weight: 800; font-size: 1.05rem; color: #0f172a; }
.demo-header-meta { font-size: 0.85rem; color: #64748b; }
.demo-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 1.15rem;
  background: #f1f5f9;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  color: #0e7490;
}

.demo-skills {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
}
.demo-skill-tab {
  flex: 0 0 auto;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.demo-skill-tab:hover { border-color: #0e7490; color: #0e7490; }
.demo-skill-tab.active {
  background: linear-gradient(135deg, #0e7490, #0369a1);
  border-color: #0e7490;
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 116, 144, 0.28);
}
.demo-skill-tab.done {
  border-color: #10b981;
  color: #059669;
  background: #ecfdf5;
}

.demo-main {
  flex: 1;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.demo-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  margin-bottom: 1rem;
}
.demo-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #0f172a;
}
.demo-card .lead {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.demo-mock-note {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Listening mock */
.demo-audio {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.demo-audio-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.6rem 0;
}
.demo-audio-bar > span {
  display: block;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, #0e7490, #38bdf8);
  border-radius: 999px;
  animation: demo-audio-pulse 2.2s ease-in-out infinite;
}
@keyframes demo-audio-pulse {
  0%, 100% { width: 28%; opacity: 0.85; }
  50% { width: 62%; opacity: 1; }
}
.demo-audio-status { font-size: 0.85rem; color: #0e7490; font-weight: 600; }

/* Reading mock */
.demo-passage {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  white-space: pre-wrap;
}

/* Options / TFNG */
.demo-q {
  padding: 0.85rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.demo-q:last-child { border-bottom: none; }
.demo-q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  margin-right: 8px;
  border: 2px solid #94a3b8;
  background: #f1f5f9;
  color: #64748b;
}
.demo-q-num.answered {
  border-color: #1565c0;
  background: #1565c0;
  color: #fff;
}
.demo-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-left: 34px; }
.demo-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
}
.demo-opt:hover { border-color: #1565c0; background: #eef5ff; }
.demo-opt.selected { border-color: #1565c0; background: #eef5ff; }
.demo-tfng { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-left: 34px; }
.demo-tfng-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}
.demo-tfng-btn:hover { border-color: #1565c0; background: #eef5ff; }
.demo-tfng-btn.selected { border-color: #1565c0; background: #1565c0; color: #fff; }

/* Writing mock */
.demo-task-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.demo-prompt {
  background: #f8fafc;
  border-left: 4px solid #0e7490;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  line-height: 1.65;
  font-size: 0.92rem;
}
.demo-textarea {
  width: 100%;
  min-height: 160px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.65;
  resize: vertical;
  box-sizing: border-box;
}
.demo-textarea:focus {
  outline: none;
  border-color: #0e7490;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}
.demo-word-count {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.4rem;
  text-align: right;
}

/* Speaking mock */
.demo-speak-stage {
  text-align: center;
  padding: 1.25rem 0.5rem;
}
.demo-speak-q {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0.75rem 0 1.25rem;
  line-height: 1.55;
}
.demo-waveform {
  height: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin: 1rem 0;
}
.demo-waveform span {
  width: 5px;
  border-radius: 3px;
  background: #94a3b8;
  height: 12px;
  transition: height 0.15s, background 0.15s;
}
.demo-waveform.recording span {
  background: #ef4444;
  animation: demo-bar 0.55s ease-in-out infinite alternate;
}
.demo-waveform.recording span:nth-child(2) { animation-delay: 0.05s; }
.demo-waveform.recording span:nth-child(3) { animation-delay: 0.1s; }
.demo-waveform.recording span:nth-child(4) { animation-delay: 0.15s; }
.demo-waveform.recording span:nth-child(5) { animation-delay: 0.2s; }
.demo-waveform.recording span:nth-child(6) { animation-delay: 0.12s; }
.demo-waveform.recording span:nth-child(7) { animation-delay: 0.08s; }
@keyframes demo-bar {
  from { height: 10px; }
  to { height: 42px; }
}
.demo-rec-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #ef4444, #b91c1c);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.demo-rec-btn:hover { transform: scale(1.05); }
.demo-rec-btn.recording {
  background: linear-gradient(145deg, #64748b, #334155);
  box-shadow: 0 8px 24px rgba(51, 65, 85, 0.35);
}
.demo-mock-transcript {
  margin-top: 1rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: #475569;
  min-height: 3rem;
  text-align: left;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
.demo-btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.demo-btn-primary {
  background: #0e7490;
  color: #fff;
}
.demo-btn-primary:hover { background: #0c5f76; }
.demo-btn-ghost {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.demo-btn-ghost:hover { background: #e2e8f0; }

.demo-welcome {
  max-width: 520px;
  margin: 2rem auto;
  text-align: center;
}
.demo-welcome-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.demo-skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1.25rem 0;
  text-align: left;
}
.demo-skill-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.demo-skill-chip span { display: block; font-size: 0.75rem; color: #94a3b8; font-weight: 500; margin-top: 0.2rem; }

.demo-done {
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.demo-done h2 { margin-bottom: 0.5rem; }
.demo-done p { color: #64748b; line-height: 1.65; margin-bottom: 1.25rem; }

@media (max-width: 600px) {
  .demo-skill-grid { grid-template-columns: 1fr; }
  .demo-card { padding: 1rem; }
  .demo-opts, .demo-tfng { padding-left: 0; }
}
