/* Stat Cards Small */
.stat-card-small {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card-small .stat-label {
  font-size: 0.875rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.stat-card-small .stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Flash Card Wrapper */
.flashcard-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.flashcard-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #6c757d;
}

/* Flash Card Container */
.flashcard {
  perspective: 1000px;
  min-height: 400px;
  margin-bottom: 2rem;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  min-height: 400px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

/* Front and Back Sides */
.flashcard-front,
.flashcard-back {
  position: absolute;
  width: 100%;
  min-height: 400px;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.flashcard-front {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border: 3px solid var(--primary-color);
}

.flashcard-back {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  transform: rotateY(180deg);
}

/* Content */
.flashcard-content {
  text-align: center;
  width: 100%;
}

.question-number {
  font-size: 1.25rem;
  color: var(--accent-color);
  font-weight: bold;
  margin-bottom: 2rem;
}

.question-text {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.answer-label {
  font-size: 1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.answer-text {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  line-height: 1.4;
}

/* Rating Section */
.rating-section {
  margin-top: 2rem;
}

.rating-question {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.rating-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.btn-rating {
  padding: 1rem 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-rating:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: white;
}

.btn-rating .rating-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.btn-rating .rating-time {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Rating Button Colors */
.btn-again {
  border-color: #dc3545;
}

.btn-again:hover {
  background: #dc3545;
  border-color: #dc3545;
}

.btn-hard {
  border-color: #ffc107;
}

.btn-hard:hover {
  background: #ffc107;
  border-color: #ffc107;
  color: #333;
}

.btn-good {
  border-color: #28a745;
}

.btn-good:hover {
  background: #28a745;
  border-color: #28a745;
}

.btn-easy {
  border-color: #17a2b8;
}

.btn-easy:hover {
  background: #17a2b8;
  border-color: #17a2b8;
}

/* Navigation */
.flashcard-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.flashcard-navigation .btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
}

/* Stats Cards Styling */
.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .flashcard-front,
  .flashcard-back {
    padding: 2rem;
    min-height: 350px;
  }

  .question-text {
    font-size: 1.5rem;
  }

  .answer-text {
    font-size: 1.75rem;
  }

  .rating-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .flashcard-navigation {
    flex-direction: column;
  }
}
