/* ==========================================================
   SPEAKIE SMART REVIEW & MIXED PRACTICE ENGINE STYLING
   ========================================================== */

.review-hub-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Header & Control Bar */
.review-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.review-hub-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.35rem 0;
}

.review-hub-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  max-width: 720px;
}

/* Priority Banner (Spaced Repetition from Notebook & Peer Check) */
.review-priority-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fde68a;
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
  transition: all 0.3s ease;
}

html.dark .review-priority-banner {
  background: linear-gradient(135deg, #2d1e07 0%, #3e2808 100%);
  border-color: #b45309;
}

.priority-banner-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.3));
}

.priority-banner-content h4 {
  font-size: 1.1rem;
  font-weight: 900;
  color: #b45309;
  margin: 0 0 0.25rem 0;
}

html.dark .priority-banner-content h4 {
  color: #fde68a;
}

.priority-banner-content p {
  font-size: 0.88rem;
  color: #92400e;
  margin: 0;
  line-height: 1.5;
}

html.dark .priority-banner-content p {
  color: #fef3c7;
}

.priority-sound-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #f59e0b;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 0.4rem;
  margin-right: 0.35rem;
}

/* Mixed Workout Main Interactive Card */
.review-workout-card {
  background: #ffffff;
  border: 2px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
  position: relative;
  transition: all 0.3s ease;
}

html.dark .review-workout-card {
  background: #0f172a;
  border-color: #334155;
}

.review-card-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1.5px dashed #e2e8f0;
}

html.dark .review-card-meta-bar {
  border-bottom-color: #334155;
}

.review-meta-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Priority Glow Tag */
.tag-priority-glow {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
  border: 1.5px solid #f87171;
  padding: 4px 12px;
  border-radius: 9999px;
  font-weight: 900;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
  animation: pulsePriorityGlow 2.5s infinite;
}

@keyframes pulsePriorityGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 16px rgba(239, 68, 68, 0.45); }
}

/* Pronunciation Target Box */
.review-target-box {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
  position: relative;
}

html.dark .review-target-box {
  background: #1e293b;
  border-color: #334155;
}

.review-spoken-text {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.review-spoken-text u {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: #2563eb;
  color: #2563eb;
  font-weight: 900;
}

.review-text-paragraph {
  font-size: 1.18rem;
  text-align: left;
  line-height: 1.7;
}

.review-subinfo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Session Progress & Queue Bar */
.review-session-progress {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.review-progress-track {
  flex-grow: 1;
  height: 10px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

html.dark .review-progress-track {
  background: #334155;
}

.review-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  border-radius: 9999px;
  transition: width 0.35s ease;
}

/* Queue Drawer Grid */
.review-queue-drawer {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

html.dark .review-queue-drawer {
  background: #0f172a;
  border-color: #334155;
}

.review-queue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: 150px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.review-queue-chip {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

html.dark .review-queue-chip {
  background: #1e293b;
  border-color: #475569;
  color: #94a3b8;
}

.review-queue-chip.current {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

.review-queue-chip.completed {
  border-color: #86efac;
  background: #f0fdf4;
  color: #15803d;
}

.review-queue-chip.needs_practice {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}
