/* Estilos para flashcards.html — sistema de prática por flashcard */

.fc-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 100px;
}

.fc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
}

.fc-kicker {
  font-size: 34pt;
  margin: 0 0 8px;
}

.fc-card h1 {
  font-family: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  font-size: 20pt;
  color: var(--primary-green);
  margin: 0 0 12px;
}

.fc-intro {
  color: var(--text-subtle);
  line-height: 1.6;
  font-size: 10.5pt;
  margin: 0 0 24px;
}

/* ---------- ECRÃ 1: escolha de âmbito ---------- */

.fc-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.fc-scope-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.fc-scope-option:hover {
  border-color: var(--accent-green-light);
}
.fc-scope-option.is-selected {
  border-color: var(--primary-green);
  background: var(--accent-green-bg);
}
.fc-scope-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fc-scope-icon {
  font-size: 20pt;
}
.fc-scope-label {
  font-size: 9pt;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.3;
}

.fc-detail-hint {
  text-align: left;
  font-size: 9.5pt;
  color: var(--text-subtle);
  margin: 4px 0 10px;
}

.fc-checklist {
  text-align: left;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.fc-checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 9.5pt;
  color: var(--text-color);
  cursor: pointer;
}
.fc-checklist-item input {
  accent-color: var(--primary-green);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.fc-checklist-item-indent {
  padding-left: 26px;
}
.fc-topic-group {
  margin-bottom: 6px;
}
.fc-topic-group:last-child {
  margin-bottom: 0;
}
.fc-checklist-item-category {
  font-weight: 700;
}
.fc-checklist-item-category input {
  accent-color: var(--primary-green);
}

#fc-start-btn {
  border: none;
  cursor: pointer;
  font-size: 11pt;
  box-shadow: 0 0 0 1px var(--card-border);
  margin-top: 22px;
}

/* ---------- ECRÃ 2: prática ---------- */

.fc-practice-card {
  text-align: left;
}

.fc-progress-bar {
  margin-bottom: 22px;
}
.fc-progress-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.fc-progress-label {
  font-size: 9pt;
  font-weight: 600;
  color: var(--text-subtle);
}
.fc-stop-btn {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 8.5pt;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.fc-stop-btn:hover {
  color: #e74c3c;
}
.fc-progress-track {
  height: 6px;
  border-radius: 3px;
  background: var(--subtle-bg);
  overflow: hidden;
}
.fc-progress-fill {
  height: 100%;
  background: var(--primary-green);
  border-radius: 3px;
  transition: width 0.2s ease;
}

.fc-flashcard {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 30px 24px;
  margin-bottom: 20px;
}
.fc-flashcard-question {
  font-family: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14pt;
  color: var(--text-color);
  line-height: 1.4;
  margin: 0;
}
.fc-flashcard-answer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--card-border);
  width: 100%;
}
.fc-flashcard-short {
  font-size: 11.5pt;
  font-weight: 600;
  color: var(--primary-green);
  margin: 0 0 10px;
}
.fc-flashcard-explanation {
  font-size: 10.5pt;
  color: var(--text-subtle);
  line-height: 1.6;
  margin: 0;
}

#fc-reveal-btn {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 11pt;
  padding: 14px 16px;
  box-shadow: 0 0 0 1px var(--card-border);
}

.fc-verdict-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.fc-verdict-btn {
  padding: 13px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 10.5pt;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease;
}
.fc-verdict-btn:hover {
  transform: translateY(-1px);
}
.fc-verdict-no {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.35);
}
.fc-verdict-yes {
  background: var(--accent-green-bg);
  color: var(--primary-green);
  border-color: var(--accent-green-light);
}

/* ---------- ECRÃ 3: resumo ---------- */

.fc-summary-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 10px 0 28px;
}
.fc-summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.fc-summary-stat-num {
  font-family: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  font-size: 26pt;
  font-weight: 800;
  color: var(--primary-green);
}
.fc-summary-stat span:last-child {
  font-size: 9pt;
  color: var(--text-subtle);
  font-weight: 600;
}

.fc-summary-comparison {
  font-size: 10pt;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 20px;
}
.fc-summary-comparison:empty {
  display: none;
}

.fc-history-section {
  text-align: left;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
}
.fc-history-section:has(#fc-history-list:empty) {
  display: none;
}
.fc-history-title {
  font-size: 8.5pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--secondary-green);
  margin: 0 0 8px;
}
.fc-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 9.5pt;
  color: var(--text-color);
  border-top: 1px solid var(--card-border);
}
.fc-history-row:first-child {
  border-top: none;
}
.fc-history-date {
  color: var(--text-subtle);
}
.fc-history-score {
  font-weight: 600;
}

.fc-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.fc-summary-actions .landing-cta-primary,
.fc-summary-actions .landing-cta-secondary {
  width: 100%;
  max-width: 320px;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 10.5pt;
  box-shadow: 0 0 0 1px var(--card-border);
}
.fc-summary-actions .landing-cta-secondary {
  background: transparent;
  color: var(--primary-green);
  box-shadow: none;
  border: 1.5px solid var(--card-border);
}
.fc-summary-actions .landing-cta-secondary:hover {
  background: var(--subtle-bg);
}

@media (max-width: 600px) {
  .fc-card {
    padding: 26px 20px;
  }
  .fc-scope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fc-verdict-actions {
    grid-template-columns: 1fr;
  }
}
