/* استایل‌های فلش‌کارت */

.flashcards-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

/* فلش‌کارت اصلی */
.flashcard {
  width: 100%;
  max-width: 650px;
  height: 480px;
  cursor: pointer;
  perspective: 1500px;
  position: relative;
  margin-bottom: 30px;
}

.flashcard .flashcard-front,
.flashcard .flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 24px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.6s;
}

.flashcard .flashcard-front {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: rotateY(0);
}

.flashcard .flashcard-back {
  background: white;
  color: var(--dark);
  transform: rotateY(180deg);
}

.flashcard.flipped .flashcard-front {
  transform: rotateY(-180deg);
}

.flashcard.flipped .flashcard-back {
  transform: rotateY(0);
}

/* ایموجی فلش‌کارت */
.flashcard .emoji {
  font-size: 70px;
  background: rgba(255, 255, 255, 0.2);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.flashcard h2 {
  font-size: 44px;
  margin: 15px 0;
}

.flashcard .gender-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 50px;
  margin-top: 10px;
  font-size: 14px;
}

.flashcard .hint {
  margin-top: 20px;
  font-size: 12px;
  opacity: 0.7;
}

/* دکمه تلفظ */
.speak-flashcard-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.speak-flashcard-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

/* دکمه‌های ریتینگ */
.rating-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.rating-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Vazirmatn", sans-serif;
  transition: 0.3s;
}

.rating-btn:hover {
  transform: translateY(-2px);
}

.rating-btn.again {
  background: var(--danger);
  color: white;
}

.rating-btn.hard {
  background: var(--warning);
  color: var(--dark);
}

.rating-btn.good {
  background: var(--success);
  color: var(--dark);
}

.rating-btn.easy {
  background: var(--primary);
  color: white;
}

/* نوار پیشرفت */
.progress-bar {
  margin-top: 25px;
  text-align: center;
  width: 100%;
  max-width: 500px;
}

.progress-track {
  background: var(--light);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  height: 100%;
  width: 0%;
  transition: width 0.3s;
}

.progress-text {
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray);
}

/* فیلترها */
.filter-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-select {
  background: white;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: "Vazirmatn", sans-serif;
}

.shuffle-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.shuffle-btn:hover {
  transform: translateY(-2px);
}

/* تکمیل جلسه */
.session-complete {
  text-align: center;
  background: white;
  padding: 50px;
  border-radius: 24px;
  max-width: 500px;
  margin: 0 auto;
}

.session-complete .trophy {
  font-size: 70px;
  margin-bottom: 20px;
}

.session-complete h2 {
  color: var(--primary);
  margin-bottom: 15px;
}

.session-stats {
  margin: 25px 0;
  padding: 20px;
  background: var(--light);
  border-radius: 16px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.stat-row:last-child {
  border-bottom: none;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .flashcard {
    height: 420px;
  }

  .flashcard h2 {
    font-size: 32px;
  }

  .flashcard .emoji {
    width: 90px;
    height: 90px;
    font-size: 45px;
  }

  .rating-btn {
    padding: 8px 20px;
    font-size: 12px;
  }
}
