/* Shared Video Course Styles - 2025 Refinement */
:root {
  --nb-bg: #0b0b0c;
  --nb-fg: #ffffff;
  --nb-muted: #94a3b8;
  --nb-card: #121214;
  --nb-border: rgba(255, 255, 255, 0.08);
  --nb-gold: #ffd700;
  --nb-gold-hover: #e6c200;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Luxury Gold Palette */
  --luxury-gold-300: #ffe033;
  --luxury-gold-400: #ffd700;
  --luxury-gold-500: #e6c200;
  --luxury-gold-600: #cca300;
}

body {
  color: var(--nb-fg);
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--nb-bg);
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.05), transparent 40%);
  background-attachment: fixed;
}

.site-header {
  padding: 1rem 0;
  background: rgba(11, 11, 12, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nb-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nb-fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* Video Cards - 2025 Style */
.video-card {
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 16px;
  overflow: hidden;
  background: var(--nb-card);
  border: 1px solid var(--nb-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.3);
}

.video-card-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}

.video-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
  color: #fff;
  padding: 1.5rem 1rem 1rem;
  font-size: 1rem;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-card-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--nb-fg);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.video-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--nb-muted);
  margin-top: auto;
}

.video-card-price {
  color: var(--nb-gold);
  font-weight: 700;
  font-size: 1rem;
}

.lesson-card.preview-active .video-overlay {
  display: none !important;
}

/* General Card Style */
.card {
  background: var(--nb-card);
  border: 1px solid var(--nb-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  color: var(--nb-fg);
  overflow: hidden;
}

.card-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--nb-border);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--nb-fg);
  padding: 1.25rem 1.5rem;
}

.card-body {
  color: var(--nb-muted);
  padding: 1.5rem;
}

.card h5,
.card h6,
.card .course-title,
.card .card-title {
  color: var(--nb-fg);
  font-weight: 600;
}

/* Buttons */
.btn-custom {
  background: var(--nb-gold);
  border: none;
  color: #000;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-custom:hover {
  background: var(--nb-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.25);
  color: #000;
}

.btn-back {
  background: transparent;
  border: 1px solid var(--nb-border);
  color: var(--nb-fg);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-back:hover {
  border-color: var(--nb-fg);
  color: var(--nb-fg);
  background: rgba(255, 255, 255, 0.05);
}

/* Premium Course Detail Layout */
body.page-video-course-detail {
  background: linear-gradient(135deg, #0f0f10 0%, #1a1a1b 50%, #2d2d2e 100%) !important;
  color: #ffffff !important;
  min-height: 100vh;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
}

body.page-video-course-detail .site-header {
  background: rgba(5, 5, 5, 0.98) !important;
  border-bottom: 2px solid rgba(255, 215, 0, 0.4) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.page-video-course-detail .brand-glow {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--luxury-gold-400), var(--luxury-gold-600));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

body.page-video-course-detail .brand-glow:hover {
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}



body.page-video-course-detail .course-container {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.02));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  color: #ffffff !important;
  padding: 2.5rem !important;
  margin: 2rem 0;
  box-shadow: 0 16px 40px rgba(255, 215, 0, 0.15), 0 0 0 1px rgba(255, 215, 0, 0.1);
  position: relative;
  overflow: hidden;
}

body.page-video-course-detail .course-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 50%, rgba(255, 215, 0, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

body.page-video-course-detail .course-container:hover::before {
  opacity: 1;
}

body.page-video-course-detail .course-header {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
  border-bottom: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: #ffffff !important;
  padding: 2rem !important;
  margin: -2.5rem -2.5rem 2.5rem -2.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

body.page-video-course-detail .course-title {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  text-align: center;
  background: linear-gradient(135deg, var(--luxury-gold-300), var(--luxury-gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-family: var(--font-display);
}

body.page-video-course-detail .course-info {
  text-align: center;
  color: rgba(255, 255, 255, 0.9) !important;
}

body.page-video-course-detail .course-info strong {
  color: var(--luxury-gold-400) !important;
  font-weight: 600;
}

body.page-video-course-detail .lesson-card {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.03));
  border: 2px solid rgba(255, 215, 0, 0.2) !important;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s ease;
  color: #ffffff !important;
  backdrop-filter: blur(8px);
  position: relative;
}

body.page-video-course-detail .lesson-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 50%, rgba(255, 215, 0, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

body.page-video-course-detail .lesson-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.4) !important;
}

body.page-video-course-detail .lesson-card:hover::before {
  opacity: 1;
}

body.page-video-course-detail .lesson-card-header {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding: 1.25rem 1.75rem !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  position: relative;
  z-index: 2;
}

body.page-video-course-detail .lesson-card-body {
  padding: 1.75rem !important;
  text-align: center;
  color: #ffffff !important;
  position: relative;
  z-index: 2;
}

body.page-video-course-detail .btn-modern-primary {
  background: linear-gradient(135deg, var(--luxury-gold-500), var(--luxury-gold-600)) !important;
  color: #050505 !important;
  border: 2px solid transparent;
  font-weight: 600;
  border-radius: var(--radius-xl) !important;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

body.page-video-course-detail .btn-modern-primary:hover {
  background: linear-gradient(135deg, var(--luxury-gold-400), var(--luxury-gold-500)) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
  color: #050505 !important;
}

body.page-video-course-detail .btn-modern-back {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  transition: all 0.3s ease;
}

body.page-video-course-detail .btn-modern-back:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

body.page-video-course-detail .expired-alert {
  background: rgba(255, 193, 7, 0.1) !important;
  border: 1px solid rgba(255, 193, 7, 0.3) !important;
  border-radius: 12px !important;
  color: #ffc107 !important;
  padding: 1.5rem !important;
  margin-bottom: 2rem !important;
}

body.page-video-course-detail .empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--nb-muted);
}

body.page-video-course-detail .empty-state .alert {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  border-radius: 12px !important;
  color: var(--nb-muted) !important;
  padding: 2rem !important;
}

body.page-video-course-detail .text-muted {
  color: var(--nb-muted) !important;
}

body.page-video-course-detail .logged-in-text strong {
  color: #ffffff !important;
}

/* Modal */
.modal {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.modal-content {
  background-color: var(--nb-card);
  border: 1px solid var(--nb-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.close {
  color: var(--nb-muted);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close:hover {
  opacity: 1;
  color: var(--nb-fg);
}

/* Player */
.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--nb-border);
}

/* Legacy browsers without aspect-ratio support */
.player-wrapper::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.player-wrapper mux-player,
.player-wrapper video,
.player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive */
@media (max-width: 576px) {
  .player-wrapper {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .btn-custom {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .course-title {
    font-size: 1.25rem;
  }

  .video-card-content {
    padding: 1rem;
  }
}