/* Flashcards Section Styles - Expandable PhonicsPro UI (Venezuelan Style) */
:root {
  --fc-pink: #db2777;
  --fc-slate-800: #1e293b;
  --fc-slate-700: #334155;
  --fc-slate-600: #475569;
  --fc-slate-100: #f1f5f9;
  --fc-cyan-600: #0891b2;
  --fc-cyan-500: #06b6d4;
  --fc-cyan-100: #ecfeff;
}

.flashcards-view {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem 1rem;
  background: var(--bg-main);
  min-height: calc(100vh - 200px);
}

.flashcard-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

/* Header */
.flashcard-header {
  padding: 1.5rem;
  text-align: center;
}

.flashcard-word-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--fc-pink);
  margin: 0;
  letter-spacing: -0.025em;
}

/* Image */
.flashcard-image-box {
  padding: 0 1.5rem;
}

.flashcard-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--fc-slate-100);
}

.flashcard-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main Audio trigger */
.flashcard-audio-trigger {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.flashcard-main-play {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  background: var(--fc-slate-100);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fc-slate-700);
  cursor: pointer;
  transition: all 0.2s;
}

.flashcard-main-play:hover {
  background: #e2e8f0;
  transform: scale(1.05);
}

.flashcard-main-play svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

/* IPA */
.flashcard-phonetic {
  padding: 0 1.5rem 1.5rem;
  text-align: center;
}

.ipa-display {
  font-size: 2.25rem;
  color: var(--fc-pink);
  margin: 0;
}

/* Answer Panel (Expandable) */
.flashcard-answer-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  background: #ffffff;
}

.flashcard-card.is-expanded .flashcard-answer-panel {
  max-height: 500px;
  opacity: 1;
}

.flashcard-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.detail-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.detail-icon-btn {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.detail-icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.icon-meaning { background: var(--fc-cyan-100); color: var(--fc-cyan-600); }
.icon-meaning:hover { background: #cffafe; }

.icon-example { background: var(--fc-slate-100); color: var(--fc-slate-600); }
.icon-example:hover { background: #e2e8f0; }

.detail-text {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

.detail-text b { font-weight: 600; }
.text-meaning { color: var(--fc-cyan-600); }
.text-example { color: var(--fc-slate-600); }

/* Show Answer Bar */
.show-answer-footer {
  padding: 1.25rem;
  background: var(--fc-slate-600);
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background 0.2s;
}

.show-answer-footer:hover { background: var(--fc-slate-700); }

/* Rating System */
.flashcard-rating-system {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e2e8f0;
}

.rating-btn {
  border: none;
  padding: 1.25rem 0.25rem;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  transition: opacity 0.2s;
}

.rating-btn:hover { opacity: 0.9; }
.btn-hard { background: #ef4444; } /* red-500 */
.btn-med  { background: #64748b; } /* slate-500 */
.btn-good { background: #22c55e; } /* green-500 */
.btn-easy { background: #06b6d4; } /* cyan-500 */

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-card {
  animation: fadeIn 0.3s ease-out forwards;
}
/* --- SRS PROGRESS INDICATOR --- */
.srs-stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.srs-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.srs-stat-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05rem;
    opacity: 0.7;
}

.srs-stat-item .count {
    font-size: 1.2rem;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
}

.srs-stat-item.new .count { color: #50b3ff; } /* Blue for New */
.srs-stat-item.learning .count { color: #ff5050; } /* Red for Learning */
.srs-stat-item.review .count { color: #50ffab; } /* Green for Review */

.srs-stat-separator {
    font-size: 1rem;
    opacity: 0.3;
    font-weight: 300;
}

.hidden {
    display: none !important;
}
