@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  --bg-main: #0a0d14;
  --bg-surface: #111622;
  --bg-card: #161c2d;
  --bg-card-hover: #1f273e;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.18);
  
  --accent-red: #ff3838;
  --accent-orange: #ff6b00;
  --accent-green: #00e676;
  --accent-blue: #00b0ff;
  --accent-cyan: #00e5ff;
  --accent-purple: #9d4edd;
  --accent-gold: #fbc02d;
  
  --gradient-performance: linear-gradient(135deg, #ff3838 0%, #ff6b00 100%);
  --gradient-ecu: linear-gradient(135deg, #00b0ff 0%, #00e5ff 100%);
  --gradient-pro: linear-gradient(135deg, #9d4edd 0%, #ff3838 100%);
  --gradient-gold: linear-gradient(135deg, #fbc02d 0%, #ff6b00 100%);
  --gradient-dark: linear-gradient(180deg, #111622 0%, #0a0d14 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --shadow-glow-red: 0 0 25px rgba(255, 56, 56, 0.3);
  --shadow-glow-orange: 0 0 25px rgba(255, 107, 0, 0.3);
  --shadow-glow-blue: 0 0 25px rgba(0, 176, 255, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--gradient-performance);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: var(--gradient-ecu);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
}

.btn-primary {
  background: var(--gradient-performance);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(255, 56, 56, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 56, 56, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-bright);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.btn-glow-blue {
  background: var(--gradient-ecu);
  color: #000;
  font-weight: 700;
  box-shadow: var(--shadow-glow-blue);
}

.btn-glow-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.6);
}

.badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-basic {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.badge-pro {
  background: rgba(0, 176, 255, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 176, 255, 0.3);
}

.badge-master {
  background: rgba(255, 56, 56, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255, 56, 56, 0.3);
}

.badge-bundle {
  background: rgba(157, 78, 221, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(157, 78, 221, 0.3);
}

.badge-gold {
  background: rgba(251, 192, 45, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 192, 45, 0.3);
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.currency-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
}

.currency-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.currency-btn.active {
  background: var(--accent-orange);
  color: #fff;
}

.user-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.user-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.user-status-dot.visitor {
  background: var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  background: radial-gradient(circle at 50% 20%, rgba(255, 56, 56, 0.12) 0%, transparent 60%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: 1.8rem;
  color: var(--text-main);
  font-weight: 800;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-bright);
}

.hero-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.yt-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(17, 22, 34, 0.9);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 0.88rem;
  text-decoration: none;
}

.yt-floating-badge i {
  color: #ff0000;
  font-size: 1.6rem;
}

/* Community Highlight Section */
.community-section {
  background: linear-gradient(135deg, rgba(251, 192, 45, 0.05) 0%, rgba(255, 107, 0, 0.08) 100%);
  border: 1px solid rgba(251, 192, 45, 0.25);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.community-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.community-feed-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition-fast);
}

.community-feed-item:hover {
  border-color: var(--accent-gold);
  transform: translateX(6px);
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-performance);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

/* Learning Path Banner */
.learning-path-banner {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, rgba(0, 176, 255, 0.08) 100%);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.path-info h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 8px;
}

.path-steps {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.path-step-pill {
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.path-step-pill span {
  background: var(--accent-green);
  color: #000;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
}

/* Section Controls & Catalog */
.catalog-section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  background: var(--bg-surface);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tab-btn.active {
  background: var(--bg-card-hover);
  color: #fff;
  border: 1px solid var(--border-bright);
}

/* Course Cards Grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.course-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-orange);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.course-card-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.course-card:hover .course-card-header img {
  transform: scale(1.05);
}

.course-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.course-yt-tag {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.course-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notebooklm-pill {
  background: rgba(0, 176, 255, 0.1);
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.course-price-box {
  display: flex;
  flex-direction: column;
}

.price-main {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.price-alt {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-bright);
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--accent-red);
  color: #fff;
}

/* Student Dashboard View */
.student-dashboard {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 32px;
  margin: 40px 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

/* Forum & Community Feed Inside Student Portal */
.forum-container {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-top: 24px;
}

.post-item {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 18px;
  margin-bottom: 16px;
}

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

/* Audio Player UI (NotebookLM) */
.notebooklm-audio-player {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-bright);
  padding: 20px;
  margin-top: 20px;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-performance);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-red);
}

.progress-bar-container {
  flex-grow: 1;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.progress-bar-fill {
  width: 42%;
  height: 100%;
  background: var(--gradient-performance);
  border-radius: var(--radius-full);
}

/* Interactive Quiz */
.quiz-box {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: 24px;
}

.quiz-option {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-option:hover {
  border-color: var(--accent-orange);
  background: var(--bg-card-hover);
}

.quiz-option.correct {
  background: rgba(0, 230, 118, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.quiz-option.incorrect {
  background: rgba(255, 56, 56, 0.15);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* Certificate Modal / View */
.certificate-frame {
  background: #0f1420;
  border: 8px solid #c5a059;
  padding: 40px;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
  position: relative;
}

.certificate-title {
  font-size: 2.2rem;
  color: #c5a059;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.certificate-name {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  border-bottom: 2px solid #c5a059;
  display: inline-block;
  padding: 0 30px 6px;
  margin: 20px 0;
}

/* Footer */
footer {
  background: #07090e;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .hero-grid, .community-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .learning-path-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
