/* ══════════════════════════════════════════════════════════
   Flashcards editorial — overrides sobre alfabeto-editorial.css
   Selector de decks + área de sesión SRS con 4 botones.
   ══════════════════════════════════════════════════════════ */

/* ─── Hero · pills ──────────────────────────────────────── */
.flashcards-editorial .fc-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.flashcards-editorial .fc-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text);
  background: var(--surface);
  text-transform: lowercase;
}

/* ─── SRS · 4 botones (sección explicativa) ─────────────── */
.flashcards-editorial .fc-srs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.flashcards-editorial .fc-srs-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  align-items: center;
}
.flashcards-editorial .fc-srs-key {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  border-radius: 3px;
  color: #fff;
}
.flashcards-editorial .fc-srs-card--again .fc-srs-key { background: #c0392b; }
.flashcards-editorial .fc-srs-card--hard  .fc-srs-key { background: #d4881a; }
.flashcards-editorial .fc-srs-card--good  .fc-srs-key { background: #2e7d32; }
.flashcards-editorial .fc-srs-card--easy  .fc-srs-key { background: #1e6091; }
.flashcards-editorial .fc-srs-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -.01em;
  margin: 0 0 4px;
  color: var(--text);
}
.flashcards-editorial .fc-srs-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ─── Explorer override ────────────────────────────────── */
.flashcards-editorial .fc-explorer-grid {
  grid-template-columns: 1.1fr 1fr;
}

/* ─── Tabs ──────────────────────────────────────────────── */
.flashcards-editorial .fc-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 18px;
}
.flashcards-editorial .fc-tab {
  padding: 12px 18px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--text-muted);
  cursor: pointer;
  text-transform: lowercase;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.flashcards-editorial .fc-tab:hover { color: var(--text); }
.flashcards-editorial .fc-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ─── Deck list ─────────────────────────────────────────── */
.flashcards-editorial .fc-deck-list {
  display: grid;
  gap: 10px;
}
.flashcards-editorial .fc-deck-list[hidden] { display: none; }
.flashcards-editorial .fc-deck-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: border-color .15s, transform .15s, background .15s;
}
.flashcards-editorial .fc-deck-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.flashcards-editorial .fc-deck-han {
  font-family: var(--font-korean);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.02em;
}
.flashcards-editorial .fc-deck-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.flashcards-editorial .fc-deck-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.flashcards-editorial .fc-deck-title {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--text);
}
.flashcards-editorial .fc-deck-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}
.flashcards-editorial .fc-deck-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--font-mono);
}
.flashcards-editorial .fc-deck-count {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.flashcards-editorial .fc-deck-progress {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: .04em;
}

/* ─── Session card (sticky) ─────────────────────────────── */
.flashcards-editorial .fc-session {
  padding: 30px 30px 26px;
  min-height: 580px;
}
.flashcards-editorial .fc-session-inner { position: relative; }
.flashcards-editorial .fc-state[hidden] { display: none; }

/* ─── State A: idle ─────────────────────────────────────── */
.flashcards-editorial .fc-idle-han {
  font-family: var(--font-korean);
  font-size: 110px;
  font-weight: 800;
  color: var(--accent);
  opacity: .08;
  line-height: 1;
  position: absolute;
  right: -10px;
  top: 30px;
  pointer-events: none;
  user-select: none;
  letter-spacing: -.04em;
}
.flashcards-editorial .fc-idle-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 18px 0 14px;
  font-weight: 400;
  color: var(--text);
  position: relative;
}
.flashcards-editorial .fc-idle-title em {
  font-style: italic;
  color: var(--accent);
}
.flashcards-editorial .fc-idle-lead {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 22px;
  max-width: 380px;
}
.flashcards-editorial .fc-idle-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.flashcards-editorial .fc-idle-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}
.flashcards-editorial .fc-idle-list li span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .06em;
}

/* ─── State B: setup ────────────────────────────────────── */
.flashcards-editorial .fc-setup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.flashcards-editorial .fc-back-btn {
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 0;
}
.flashcards-editorial .fc-back-btn:hover { color: var(--accent); }

.flashcards-editorial .fc-setup-field { margin-bottom: 22px; }
.flashcards-editorial .fc-setup-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.flashcards-editorial .fc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.flashcards-editorial .fc-pill {
  /* Reset del .fc-pill del hero para los del setup */
}
.flashcards-editorial .fc-setup-field .fc-pill {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text);
  cursor: pointer;
  border-radius: 3px;
  text-transform: none;
  transition: border-color .15s, color .15s, background .15s;
}
.flashcards-editorial .fc-setup-field .fc-pill.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.flashcards-editorial .fc-setup-field .fc-pill:hover:not(.is-active) { border-color: var(--accent); color: var(--accent); }

.flashcards-editorial .fc-setup-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
  cursor: pointer;
}
.flashcards-editorial .fc-setup-toggle input { margin: 0; }

.flashcards-editorial .fc-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--accent);
  border: 0;
  color: #fff;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: lowercase;
  cursor: pointer;
  margin-top: 8px;
  transition: background .15s;
}
.flashcards-editorial .fc-start-btn:hover { background: var(--accent-dark, #b02f1d); }

/* ─── State C: studying ─────────────────────────────────── */
.flashcards-editorial .fc-study-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.flashcards-editorial .fc-study-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.flashcards-editorial .fc-study-counter {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .04em;
}
.flashcards-editorial .fc-progress {
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}
.flashcards-editorial .fc-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width .3s;
}

.flashcards-editorial .fc-card {
  position: relative;
  background: var(--bg, #fff);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 38px 28px 32px;
  min-height: 240px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 18px;
  transition: border-color .15s;
}
.flashcards-editorial .fc-card:hover { border-color: var(--accent); }
.flashcards-editorial .fc-card:focus { outline: 2px solid var(--accent); outline-offset: 4px; }

.flashcards-editorial .fc-card-front,
.flashcards-editorial .fc-card-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.flashcards-editorial .fc-card-back[hidden] { display: none; }

.flashcards-editorial .fc-card-prompt {
  font-family: var(--font-korean);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -.025em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.flashcards-editorial .fc-card-prompt.fc-prompt-es {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-style: italic;
  color: var(--accent);
}
.flashcards-editorial .fc-card-prompt.fc-prompt-audio {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--accent);
}
.flashcards-editorial .fc-card-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 8px;
}

.flashcards-editorial .fc-card-han {
  font-family: var(--font-korean);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.05;
  letter-spacing: -.02em;
  word-break: keep-all;
}
.flashcards-editorial .fc-card-rom {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .04em;
  margin-top: -6px;
}
.flashcards-editorial .fc-card-es {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  color: var(--text);
  font-style: italic;
  margin-top: 6px;
}
.flashcards-editorial .fc-card-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: .06em;
  margin-top: 4px;
}

.flashcards-editorial .fc-speak-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.flashcards-editorial .fc-speak-btn:hover { border-color: var(--accent); color: var(--accent); }

.flashcards-editorial .fc-reveal-btn {
  width: 100%;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.flashcards-editorial .fc-reveal-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.flashcards-editorial .fc-reveal-btn kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  background: var(--border);
  border-radius: 2px;
  margin-left: 4px;
}

.flashcards-editorial .fc-srs-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.flashcards-editorial .fc-srs-actions[hidden] { display: none; }
.flashcards-editorial .fc-srs-btn {
  padding: 12px 6px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  transition: filter .15s, transform .15s;
}
.flashcards-editorial .fc-srs-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.flashcards-editorial .fc-srs-btn--again { background: #c0392b; }
.flashcards-editorial .fc-srs-btn--hard  { background: #d4881a; }
.flashcards-editorial .fc-srs-btn--good  { background: #2e7d32; }
.flashcards-editorial .fc-srs-btn--easy  { background: #1e6091; }
.flashcards-editorial .fc-srs-btn-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  opacity: .8;
}
.flashcards-editorial .fc-srs-btn-label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -.005em;
}

/* ─── State D: done ─────────────────────────────────────── */
.flashcards-editorial .fc-done-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 32px;
  border-radius: 50%;
  margin-bottom: 22px;
}
.flashcards-editorial .fc-done-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 12px;
  font-weight: 400;
  color: var(--text);
}
.flashcards-editorial .fc-done-title em { font-style: italic; color: var(--accent); }
.flashcards-editorial .fc-done-lead {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 22px;
  max-width: 420px;
}
.flashcards-editorial .fc-done-stats {
  margin: 0 0 28px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.flashcards-editorial .fc-done-stats > div { text-align: center; }
.flashcards-editorial .fc-done-stats dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin: 0 0 4px;
}
.flashcards-editorial .fc-done-stats dd {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text);
  margin: 0;
}
.flashcards-editorial .fc-done-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .flashcards-editorial .fc-explorer-grid {
    grid-template-columns: 1fr;
  }
  .flashcards-editorial .fc-session { min-height: 0; padding: 26px 24px 22px; }
  .flashcards-editorial .fc-srs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .flashcards-editorial .fc-deck-card {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 14px 14px;
  }
  .flashcards-editorial .fc-deck-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .flashcards-editorial .fc-deck-han { font-size: 26px; }
  .flashcards-editorial .fc-deck-title { font-size: 16px; }
  .flashcards-editorial .fc-card { padding: 28px 18px 24px; min-height: 200px; }
  .flashcards-editorial .fc-card-prompt { font-size: clamp(36px, 9vw, 56px); }
  .flashcards-editorial .fc-card-prompt.fc-prompt-es { font-size: clamp(22px, 5vw, 32px); }
  .flashcards-editorial .fc-card-han { font-size: clamp(30px, 7vw, 42px); }
  .flashcards-editorial .fc-card-es { font-size: 18px; }
  .flashcards-editorial .fc-srs-btn-label { font-size: 12px; }
  .flashcards-editorial .fc-srs-actions { gap: 6px; }
  .flashcards-editorial .fc-srs-btn { padding: 10px 4px; }
  .flashcards-editorial .fc-tabs { overflow-x: auto; }
  .flashcards-editorial .fc-tab { flex-shrink: 0; padding: 10px 14px; }
}
