/* =====================================================
   DPBT MASTER – Cards Component Styles
   ===================================================== */

/* Result card after practice session */
.practice-end-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 480px; margin: 2rem auto;
  animation: pop-in 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.practice-end-icon { font-size: 4rem; margin-bottom: 1rem; display: block; }
.practice-end-card h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 0.3rem; }
.practice-end-score {
  font-size: 3rem; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.practice-end-details {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin: 1rem 0;
}
.practice-end-detail {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.6rem 1rem; text-align: center;
}
.practice-end-detail .d-num { font-size: 1.2rem; font-weight: 800; color: var(--cyan); display: block; }
.practice-end-detail .d-lbl { font-size: 0.7rem; color: var(--text2); }
.practice-end-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* XP gained display */
.xp-gained-display {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(6,182,212,0.15); border: 1px solid rgba(6,182,212,0.3);
  border-radius: 20px; padding: 0.3rem 0.8rem;
  font-size: 0.85rem; font-weight: 700; color: var(--cyan-l);
  margin: 0.5rem 0; animation: bounce-in 0.4s ease;
}

/* Streak card */
.streak-bonus-card {
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius); padding: 0.7rem 1rem;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; font-weight: 600; color: var(--yellow-l);
  margin-top: 0.8rem; animation: bounce-in 0.3s ease;
}
.streak-bonus-icon { font-size: 1.4rem; }

/* Difficulty indicator dots */
.diff-dots {
  display: flex; gap: 3px; align-items: center;
}
.diff-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border);
}
.diff-dot.active { background: var(--yellow); }
.diff-dots[data-diff="easy"]   .diff-dot:nth-child(1)               { background: var(--green); }
.diff-dots[data-diff="medium"] .diff-dot:nth-child(-n+2)            { background: var(--yellow); }
.diff-dots[data-diff="hard"]   .diff-dot                            { background: var(--red); }

/* Card flip effect (for reveal) */
.card-flip-container { perspective: 800px; }
.card-flip {
  position: relative; transition: transform 0.5s ease;
  transform-style: preserve-3d;
}
.card-flip.flipped { transform: rotateY(180deg); }
.card-front, .card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
}
.card-back { transform: rotateY(180deg); }

/* Timer ring (circular progress) */
.timer-ring {
  position: relative; width: 56px; height: 56px;
  flex-shrink: 0;
}
.timer-ring svg { transform: rotate(-90deg); }
.timer-ring-track { fill: none; stroke: var(--bg3); stroke-width: 4; }
.timer-ring-fill  { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.timer-ring-fill.urgent { stroke: var(--red); }
.timer-ring-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}

/* Emoji reaction overlay */
.emoji-reaction {
  position: fixed; pointer-events: none;
  font-size: 2.5rem; z-index: 450;
  animation: float-xp 1s ease forwards;
}

/* Progress pill */
.progress-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 20px; padding: 0.3rem 0.8rem;
  font-size: 0.75rem; color: var(--text2);
}
.progress-pill span { font-weight: 700; color: var(--text); }

/* Category chip */
.cat-chip {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem; font-weight: 600;
  border: 1px solid;
}
.cat-chip--intro    { color: var(--purple-l); border-color: rgba(124,58,237,0.4); background: rgba(124,58,237,0.12); }
.cat-chip--discovery { color: var(--cyan-l); border-color: rgba(6,182,212,0.4); background: rgba(6,182,212,0.12); }
.cat-chip--ideacion  { color: var(--yellow-l); border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.12); }
.cat-chip--prototipo { color: var(--orange); border-color: rgba(249,115,22,0.4); background: rgba(249,115,22,0.12); }
.cat-chip--testing   { color: var(--red-l); border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.12); }
.cat-chip--delivery  { color: var(--green-l); border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.12); }

/* Empty state */
.empty-state {
  text-align: center; padding: 3rem 1.5rem;
  color: var(--text2);
}
.empty-state-icon { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.empty-state p  { font-size: 0.88rem; }

/* Info banner */
.info-banner {
  background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.25);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  font-size: 0.85rem; color: var(--cyan-l);
  display: flex; align-items: center; gap: 0.6rem;
}

/* Hint box */
.hint-box {
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--radius-s); padding: 0.7rem 0.9rem;
  font-size: 0.82rem; color: var(--yellow-l);
  margin-top: 0.6rem;
}
