/* CAA 2026 — Flashcards interativos (premium navy+gold, flip 3D) */

/* === Topnav + page shell sao herdados de /assets/page.css === */

/* === Stats / progress (reused) === */
.deck-head { margin-bottom: 20px; }
.deck-head h2 { font-size: 24px; margin: 8px 0 4px; }
.deck-head p { color: var(--text-dim); font-size: 14px; margin: 4px 0; }
.progress { height: 6px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s ease; }

/* === Flip card 3D === */
.card-wrap { perspective: 1400px; margin: 20px auto 24px; max-width: 720px; }
.flip-card {
  position: relative;
  width: 100%;
  min-height: 320px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4, .0, .2, 1);
}
.flip-card.flipped { transform: rotateY(180deg); }
.flip-inner {
  position: relative;
  width: 100%;
  min-height: 320px;
  transform-style: preserve-3d;
}
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.flip-back { transform: rotateY(180deg); background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%); border-color: var(--accent); }
.flip-label { font-size: 11px; letter-spacing: 3px; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.flip-text { font-family: 'Crimson Pro', Georgia, serif; font-size: 19px; line-height: 1.55; color: var(--text); }
.flip-hint { margin-top: 18px; font-size: 12px; color: var(--text-dim); font-style: italic; }

/* === Answer buttons === */
.btn-ok { background: var(--ok); color: #06210e; }
.btn-ok:hover { background: #5eea91; }
.btn-err { background: var(--err); color: #2c0606; }
.btn-err:hover { background: #fda4af; }

/* === Empty / loading === */
.empty { text-align: center; padding: 40px 20px; color: var(--text-dim); }
.empty h3 { color: var(--text); margin-bottom: 8px; }

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  .flip-card { transition: none; }
}

/* === Mobile === */
@media (max-width: 600px) {
  .flip-card, .flip-inner { min-height: 280px; }
  .flip-front, .flip-back { padding: 20px; }
  .flip-text { font-size: 17px; }
}
