/* Unified green visual language for legacy templates.
 * This stylesheet only normalizes colors/shadows/radius and keeps behavior intact.
 */

:root {
  --m1r-primary: #2d6e48;
  --m1r-primary-strong: #1f6b3e;
  --m1r-primary-soft: #eaf5ee;
  --m1r-primary-mid: #c5e8d3;
  --m1r-ink: #1a3328;
  --m1r-shadow: 0 8px 24px rgba(30, 80, 50, 0.12);
}

body {
  color: var(--m1r-ink);
}

.rounded-2xl,
.rounded-xl,
.rounded-lg {
  border-radius: 12px;
}

.shadow,
.shadow-md,
.shadow-lg {
  box-shadow: var(--m1r-shadow);
}

/* Tailwind-like fallback mappings for older pages */
.hover\:text-emerald-800:hover {
  color: #065f46 !important;
}

.hover\:text-emerald-700:hover {
  color: #047857 !important;
}

.hover\:text-emerald-600:hover {
  color: #059669 !important;
}

.hover\:bg-emerald-700:hover {
  background-color: var(--m1r-primary-strong) !important;
}

.hover\:bg-emerald-600:hover {
  background-color: var(--m1r-primary) !important;
}

/* Legacy custom class overrides (desktop + mobile old skin pages) */
.hero-section,
.teacher-hero,
.video-container,
.exercise-header {
  background: linear-gradient(135deg, #3a8c5c 0%, #1f6b3e 100%) !important;
}

.teacher-avatar,
.teacher-card,
.achievement-icon,
.stat-badge {
  border-color: var(--m1r-primary-mid) !important;
}

.specialty-tag,
.power-up-badge,
.qa-icon,
.teacher-level,
.level-badge,
.progress-fill {
  background: linear-gradient(135deg, #4a9469 0%, #2d6e48 100%) !important;
}

.course-title {
  background: linear-gradient(135deg, #2d6e48 0%, #1f6b3e 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.stat-item,
.upload-zone {
  background: linear-gradient(135deg, rgba(58, 140, 92, 0.12) 0%, rgba(31, 107, 62, 0.12) 100%) !important;
}

.upload-zone.dragging {
  background: linear-gradient(135deg, rgba(58, 140, 92, 0.2) 0%, rgba(31, 107, 62, 0.2) 100%) !important;
  border-color: var(--m1r-primary) !important;
}

.loading-spinner {
  border-top-color: var(--m1r-primary) !important;
}

.loading-text,
.stat-value {
  color: var(--m1r-primary) !important;
}

.user-badge-self {
  background: var(--m1r-primary-soft) !important;
  color: var(--m1r-primary-strong) !important;
}

.user-badge-self .avatar {
  background: var(--m1r-primary) !important;
}
