/* EnglishFlow - Progress Tracker & Mentorship Engine Styles */

.progress-page-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* --- ANALYTICS HERO --- */
.analytics-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.hero-text h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-text p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.pacing-status-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pacing-status-badge i {
  font-size: 1.6rem;
  color: var(--accent);
}

.pacing-status-badge span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.pacing-status-badge span strong {
  color: #ffffff;
}

.pacing-mini-progress {
  width: 140px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin: 6px 0;
  overflow: hidden;
}

.pacing-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width 0.3s ease;
}

.pacing-status-badge small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- METRIC STAT CARDS GRID --- */
.analytics-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
}

.metric-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 4px;
}

.metric-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-trend {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- WEAK POINT DETECTOR SECTION --- */
.weak-points-section, .immersion-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title-row h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-row p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.active-issues-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid;
}

.active-issues-badge.alert {
  background: rgba(244, 63, 94, 0.15);
  color: #fecdd3;
  border-color: var(--danger);
}

.active-issues-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
  border-color: var(--primary);
}

.weak-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.weak-point-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
}

.weak-point-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.weak-point-card.resolved {
  opacity: 0.6;
  border-color: rgba(16, 185, 129, 0.3);
}

.wp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.wp-type-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.wp-type-badge.grammar { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.wp-type-badge.pronunciation { background: rgba(245, 158, 11, 0.2); color: #fde68a; }
.wp-type-badge.vocabulary { background: rgba(168, 85, 247, 0.2); color: #e9d5ff; }

.wp-status-tag.pending {
  font-size: 0.75rem;
  color: var(--danger);
  font-weight: 600;
}

.wp-status-tag.resolved {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.wp-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.wp-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 14px;
}

.wp-example-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 16px;
}

.wp-example-box small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.wp-example-box strong {
  font-size: 0.88rem;
  color: #60a5fa;
}

.wp-actions {
  margin-top: auto;
}

.btn-review-now {
  width: 100%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--amber);
  color: #fde68a;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-review-now:hover {
  background: var(--amber);
  color: #000000;
  box-shadow: 0 0 16px var(--amber-glow);
}

.resolved-note {
  font-size: 0.82rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Focused review modal */
.review-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 600px;
  max-width: 95vw;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  padding: 24px;
  animation: zoomInModal 0.3s ease;
}

.review-modal-body {
  padding: 10px 0;
}

.focused-review-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-cat-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
}

.review-explanation-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: #fde68a;
  line-height: 1.4;
}

.review-explanation-card i {
  color: var(--amber);
  font-size: 1.2rem;
}

.targeted-practice-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.targeted-practice-box h4 {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.practice-phrase-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.phrase-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-audio-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.review-modal-actions {
  margin-top: 10px;
}

/* --- IMMERSION & SHADOWING LAYOUT --- */
.immersion-layout-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
}

.shadowing-stopwatch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.timer-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.timer-header h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.timer-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 20px;
}

.stopwatch-display {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 900;
  text-align: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.stopwatch-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.btn-timer {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-timer.primary {
  background: var(--primary);
  border: none;
  color: #022c22;
}

.btn-timer.primary.running {
  background: var(--amber);
  color: #000000;
}

.btn-timer.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
}

.sample-shadowing-audio span {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 8px;
}

.sample-audio-player {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-phrase {
  font-size: 0.88rem;
  color: #ffffff;
  font-style: italic;
}

/* Immersion Guides Column */
.immersion-guides-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.immersion-tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.tip-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tip-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tip-tag {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
}

.immersion-tip-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.immersion-tip-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 14px;
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.rec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.rec-header strong {
  font-size: 0.9rem;
  color: #ffffff;
}

.rec-lvl {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-dim);
}

.rec-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0 !important;
}
