/* Flashcards island (v4.22.0, #116) — imported by flashcards.astro
 * (framework-component markup is outside Astro's style scoping, so these ship
 * as a plain stylesheet like exam-runner.css). Tokens only → dark-mode free. */

.flashcards-runner {
  margin-block: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-accent, #4f46e5);
  border-radius: 0.5rem;
  background: var(--color-surface, transparent);
}

.flashcards-empty {
  color: var(--color-text-muted, #6b7280);
  font-style: italic;
}

.flashcards-intro {
  margin-block: 0 0.5rem;
  font-size: 0.95rem;
}

.flashcards-stats,
.flashcards-progress {
  margin-block: 0 0.6rem;
  font-size: 0.9rem;
  color: var(--color-text-muted, #6b7280);
}

.flashcards-filter-label {
  display: block;
  margin-block-end: 0.75rem;
  font-size: 0.95rem;
}

.flashcards-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.flashcards-button {
  cursor: pointer;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--color-accent, #4f46e5);
  border-radius: 0.35rem;
  background: transparent;
  color: var(--color-accent, #4f46e5);
  font: inherit;
  font-weight: 600;
}

.flashcards-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.flashcards-start,
.flashcards-flip {
  background: var(--color-accent, #4f46e5);
  color: var(--color-bg, #fff);
}

.flashcards-knew {
  border-color: var(--color-success, #15803d);
  color: var(--color-success, #15803d);
}

.flashcards-learning {
  border-color: var(--color-danger, #b91c1c);
  color: var(--color-danger, #b91c1c);
}

.flashcards-link {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--color-accent, #4f46e5);
  text-decoration: underline;
}
