/* ================================================================
   TAMIL GURUKULAM - PREMIUM COURSE DETAIL DESIGN SYSTEM
   File: assets/css/course-detail.css
   ================================================================ */

:root {
  --cd-primary: #15803d;
  --cd-primary-dark: #166534;
  --cd-primary-light: #22c55e;
  --cd-primary-subtle: #f0fdf4;
  --cd-accent: #f59e0b;
  --cd-accent-dark: #d97706;
  --cd-accent-subtle: #fef3c7;
  --cd-surface: #ffffff;
  --cd-bg: #f8fafc;
  --cd-border: #e2e8f0;
  --cd-text-main: #0f172a;
  --cd-text-muted: #64748b;
  --cd-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --cd-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --cd-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --cd-radius-sm: 8px;
  --cd-radius-md: 14px;
  --cd-radius-lg: 20px;
}

/* Custom Solid Badges */
.cd-badge-warning {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cd-badge-success {
  background-color: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cd-badge-primary {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ----------------------------------------------------------------
   1. HERO HEADER SECTION
   ---------------------------------------------------------------- */
.cd-hero {
  background: linear-gradient(135deg, #0b3d18 0%, #14532d 40%, #1e293b 100%);
  color: #ffffff;
  padding: 60px 0 50px 0;
  position: relative;
  overflow: hidden;
}

.cd-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #86efac;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cd-hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 12px;
}

.cd-hero-title .tamil-title {
  font-family: 'Noto Sans Tamil', sans-serif;
  color: #fbbf24;
  font-weight: 700;
  margin-left: 8px;
}

.cd-hero-desc {
  font-size: 16px;
  line-height: 1.65;
  color: #e2e8f0;
  max-width: 780px;
  margin-bottom: 24px;
}

.cd-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cd-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
}

.cd-trust-item i {
  color: #fbbf24;
  font-size: 16px;
}

/* ----------------------------------------------------------------
   2. INTERACTIVE METRICS GRID (WARM GOLD THEME)
   ---------------------------------------------------------------- */
.cd-metrics-section {
  margin-top: -32px;
  position: relative;
  z-index: 10;
  margin-bottom: 50px;
}

.cd-metric-card {
  background: linear-gradient(145deg, #ffffff 0%, #fffdfa 60%, #fef8ee 100%);
  border: 1.5px solid #fde68a;
  border-radius: var(--cd-radius-md);
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cd-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706);
}

.cd-metric-card:hover {
  transform: translateY(-5px);
  border-color: #f59e0b;
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.18);
  background: #ffffff;
}

.cd-metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
  border: 1px solid #fcd34d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.15);
}

.cd-metric-card:hover .cd-metric-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-color: #d97706;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3);
}

.cd-metric-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #92400e;
  margin-bottom: 5px;
}

.cd-metric-value {
  font-size: 19px;
  font-weight: 800;
  color: #78350f;
  line-height: 1.2;
}

.cd-metric-card.highlight-seat {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.cd-metric-card.highlight-seat .cd-metric-icon {
  background: linear-gradient(135deg, #fef08a 0%, #fcd34d 100%);
  color: #78350f;
  border-color: #f59e0b;
}

.cd-metric-card.highlight-seat:hover .cd-metric-icon {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
}

.cd-metric-card.highlight-seat .cd-metric-label {
  color: #b45309;
}

.cd-metric-card.highlight-seat .cd-metric-value {
  color: #92400e;
}

/* ----------------------------------------------------------------
   3. CURRICULUM, STUDY KIT & PREREQUISITES PILLARS
   ---------------------------------------------------------------- */
.cd-pillar-card {
  background: var(--cd-surface);
  border: 1.5px solid var(--cd-border);
  border-radius: var(--cd-radius-lg);
  padding: 30px;
  box-shadow: var(--cd-shadow-sm);
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cd-pillar-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--cd-shadow-md);
}

.cd-pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #f1f5f9;
}

.cd-pillar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--cd-text-main);
}

.cd-pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.cd-pillar-icon.syl { background: #dcfce7; color: #15803d; }
.cd-pillar-icon.kit { background: #fef3c7; color: #b45309; }
.cd-pillar-icon.pre { background: #eff6ff; color: #1d4ed8; }

/* Syllabus Timeline Item */
.cd-syllabus-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cd-syllabus-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--cd-radius-sm);
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.cd-syllabus-item:hover {
  background: #ffffff;
  border-color: var(--cd-primary-light);
  transform: translateX(4px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.cd-step-num {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: var(--cd-primary-subtle);
  color: var(--cd-primary);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.cd-syllabus-item:hover .cd-step-num {
  background: var(--cd-primary);
  color: #ffffff;
}

.cd-step-text {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  line-height: 1.45;
}

/* Material Kit Items */
.cd-kit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--cd-radius-sm);
  background: #fffbeb;
  border: 1px solid #fef3c7;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #78350f;
  transition: all 0.2s ease;
}

.cd-kit-item:hover {
  background: #fef3c7;
  border-color: #fde68a;
  transform: translateX(4px);
}

.cd-kit-item i {
  color: #d97706;
  font-size: 16px;
  margin-top: 1px;
}

/* Prerequisites Items */
.cd-prereq-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--cd-radius-sm);
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0369a1;
  transition: all 0.2s ease;
}

.cd-prereq-item:hover {
  background: #e0f2fe;
  border-color: #bae6fd;
  transform: translateX(4px);
}

.cd-prereq-item i {
  color: #0284c7;
  font-size: 16px;
  margin-top: 1px;
}

/* ----------------------------------------------------------------
   4. LIVE BATCH CARDS (IMPRESSIVE REAL-TIME UI)
   ---------------------------------------------------------------- */
.cd-batches-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #edf7ed 100%);
}

.rt-batch-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--cd-radius-md);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.rt-batch-card:hover {
  border-color: var(--cd-primary);
  box-shadow: 0 12px 30px rgba(21, 128, 61, 0.15);
  transform: translateY(-4px);
}

.rt-batch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #15803d, #22c55e);
}

.tz-badge {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.seat-badge-open {
  background: #dcfce7;
  color: #15803d;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.seat-badge-limited {
  background: #fef3c7;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.seat-badge-full {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.seat-progress-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0 6px 0;
}

.seat-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #15803d);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.batch-meta-item {
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.batch-meta-item i {
  color: var(--cd-primary);
  font-size: 16px;
  margin-top: 1px;
}

.realtime-pulse-indicator {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-ring 1.8s infinite;
  margin-right: 6px;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ----------------------------------------------------------------
   5. PRICING & VALUE SECTION
   ---------------------------------------------------------------- */
.cd-pricing-box {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--cd-radius-lg);
  padding: 36px;
  box-shadow: var(--cd-shadow-lg);
  position: relative;
  overflow: hidden;
}

.cd-pricing-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #15803d, #22c55e, #f59e0b);
}

.cd-fee-pill {
  padding: 12px 10px;
  border-radius: var(--cd-radius-sm);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.2s ease;
}

.cd-fee-pill:hover {
  background: #ffffff;
  border-color: var(--cd-primary-light);
  transform: translateY(-2px);
}

.cd-fee-pill .lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cd-text-muted);
  margin-bottom: 2px;
}

.cd-fee-pill .val {
  font-size: 16px;
  font-weight: 800;
  color: var(--cd-text-main);
}

.cd-btn-primary-lg {
  background: linear-gradient(135deg, #166534 0%, #15803d 100%);
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 14px;
  border: none;
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.cd-btn-primary-lg:hover {
  background: linear-gradient(135deg, #14532d 0%, #166534 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(21, 128, 61, 0.4);
}
