/* ================================
   LIVE CLASSES PAGE
================================ */

.live-classes-hero {
  padding: 70px 20px;
  text-align: center;
  background: #f1f6ff;
  border-bottom: 1px solid #e2e8f0;
}

.live-classes-hero .section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.live-classes-hero h1 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 42px;
  line-height: 1.2;
}

.live-classes-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
}

/* MAIN CONTENT */

.live-classes-page {
  padding-top: 60px;
  padding-bottom: 70px;
}

.live-class-section {
  margin-bottom: 60px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.section-heading .section-label {
  display: block;
  margin-bottom: 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
}

/* CLASS GRID */

.live-class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* CLASS CARD */

.live-class-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.live-class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.live-class-top {
  padding: 22px;
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
}

.live-class-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 20px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
}

.live-class-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.4;
}

.live-class-body {
  padding: 22px;
}

.live-class-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.live-class-info span {
  color: #64748b;
  font-size: 14px;
}

.live-class-info strong {
  color: #0f172a;
}

/* BUTTON */

.join-class-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.join-class-btn:hover {
  background: #1d4ed8;
}

.join-class-btn.disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

/* EMPTY STATE */

.live-empty {
  display: none;
  padding: 45px 20px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.live-empty .empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #eff6ff;
  font-size: 28px;
}

.live-empty h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
}

.live-empty p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1000px) {
  .live-class-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .live-classes-hero {
    padding: 50px 20px;
  }

  .live-classes-hero h1 {
    font-size: 32px;
  }

  .live-classes-page {
    padding-top: 40px;
  }

  .live-class-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 24px;
  }
}

/* ================================
   DARK MODE - LIVE CLASSES
================================ */

body.dark-mode .live-classes-hero {
  background: #0f172a !important;
  color: #f8fafc !important;
}

body.dark-mode .live-classes-hero h1 {
  color: #ffffff !important;
}

body.dark-mode .live-classes-hero p {
  color: #cbd5e1 !important;
}

body.dark-mode .live-classes-page {
  color: #e5e7eb !important;
}

body.dark-mode .live-class-section {
  color: #e5e7eb !important;
}

body.dark-mode .live-class-section h2 {
  color: #ffffff !important;
}

body.dark-mode .section-heading {
  color: #e5e7eb !important;
}

body.dark-mode .section-label {
  color: #60a5fa !important;
}

/* Empty live/upcoming/completed boxes */

body.dark-mode .live-empty {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e5e7eb !important;
}

body.dark-mode .live-empty h3 {
  color: #ffffff !important;
}

body.dark-mode .live-empty p {
  color: #cbd5e1 !important;
}

body.dark-mode .empty-icon {
  color: #ffffff !important;
  background: #334155 !important;
}

/* Live class cards generated by JavaScript */

body.dark-mode .live-class-grid > * {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e5e7eb !important;
}

body.dark-mode .live-class-grid > * h3,
body.dark-mode .live-class-grid > * h4 {
  color: #ffffff !important;
}

body.dark-mode .live-class-grid > * p,
body.dark-mode .live-class-grid > * span {
  color: #cbd5e1 !important;
}

body.dark-mode .live-class-grid > * strong {
  color: #f8fafc !important;
}

/* Buttons inside live class cards */

body.dark-mode .live-class-grid > * a,
body.dark-mode .live-class-grid > * button {
  color: #ffffff !important;
}

/* ================================
   END LIVE CLASSES DARK MODE
================================ */

/* =================================
   DARK MODE - COMPLETED CLASS CARDS
================================= */

body.dark-mode #completedClassesContainer > div {
  background: #1e293b !important;
  color: #e5e7eb !important;
  border-color: #334155 !important;
}

body.dark-mode #completedClassesContainer > div h3,
body.dark-mode #completedClassesContainer > div h4 {
  color: #ffffff !important;
}

body.dark-mode #completedClassesContainer > div p,
body.dark-mode #completedClassesContainer > div span {
  color: #cbd5e1 !important;
}

/* Card top/header area */

body.dark-mode #completedClassesContainer > div > div:first-child {
  background: #1e293b !important;
  color: #ffffff !important;
}

body.dark-mode #completedClassesContainer > div > div:first-child h3,
body.dark-mode #completedClassesContainer > div > div:first-child h4 {
  color: #ffffff !important;
}

/* Completed badge */

body.dark-mode #completedClassesContainer .completed-badge {
  background: #dcfce7 !important;
  color: #166534 !important;
}


/* =========================================
   DARK MODE - LIVE CLASS CARDS
========================================= */

body.dark-mode .live-class-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e5e7eb !important;
}

/* Top section */

body.dark-mode .live-class-card .live-class-top {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .live-class-card .live-class-top h3 {
    color: #ffffff !important;
}

/* Status */

body.dark-mode .live-class-card .live-class-status {
    color: #166534 !important;
    background: #dcfce7 !important;
}

/* Information */

body.dark-mode .live-class-card .live-class-info {
    color: #e5e7eb !important;
}

body.dark-mode .live-class-card .live-class-info span {
    color: #cbd5e1 !important;
}

body.dark-mode .live-class-card .live-class-info strong {
    color: #ffffff !important;
}

/* View / Join button */

body.dark-mode .live-class-card .join-class-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

body.dark-mode .live-class-card .join-class-btn:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}