/* Shared component classes used across screens/instruments. Base tokens (--bg, --accent, etc.)
   live in index.html's inline <style> since they need to be available before this loads. */

.screen {
  flex: 1;
  padding: 16px;
  padding-bottom: 84px; /* clears the fixed bottom nav */
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.screen h1 {
  font-size: 1.4rem;
  margin: 4px 0 16px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.primary-btn {
  background: var(--accent);
  color: #16213e;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  width: 100%;
}
.primary-btn:active {
  background: var(--accent-strong);
}
.primary-btn:disabled {
  opacity: 0.5;
}

.secondary-btn {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--surface-raised);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.95rem;
}

.tone-btn {
  background: var(--surface-raised);
  color: var(--text);
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 1.1rem;
  width: 100%;
}

.mic-status {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  min-height: 1.2em;
}

.choice-caption {
  color: var(--text-dim);
  margin-bottom: 10px;
  text-align: center;
}

.stub-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
}

.prompt-big {
  font-size: 1.6rem;
  text-align: center;
  padding: 20px 0;
}
.prompt-highlight {
  color: var(--accent);
  font-weight: 800;
}

.skill-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.skill-card .skill-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.skill-card .skill-title {
  font-weight: 600;
}
.skill-card .skill-sub {
  color: var(--text-dim);
  font-size: 0.85rem;
}
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text-dim);
}
.badge.due {
  background: var(--accent);
  color: #16213e;
}
.badge.stub {
  background: transparent;
  border: 1px dashed var(--text-dim);
}

.section-heading {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin: 20px 0 8px;
}

#bottom-nav button.active {
  color: var(--accent) !important;
}

.top-bottom-split {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 84px);
}
.top-bottom-split .prompt-pane {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border-bottom: 1px solid var(--surface-raised);
}
.top-bottom-split .response-pane {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.progress-bar {
  height: 6px;
  background: var(--surface-raised);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.progress-bar > div {
  height: 100%;
  background: var(--accent);
}

.feedback-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 64px;
  padding: 14px 20px;
  text-align: center;
  font-weight: 700;
  transform: translateY(110%);
  transition: transform 0.2s ease;
}
.feedback-banner.show {
  transform: translateY(0);
}
.feedback-banner.correct {
  background: var(--good);
  color: #0c2317;
}
.feedback-banner.incorrect {
  background: var(--bad);
  color: #2a0d0c;
}
