/* ==========================================================================
   DYNAMIC PROGRAMMING MASTERCLASS DESIGN SYSTEM
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
  --primary-color: #10b981;      /* Emerald Green */
  --primary-hover: #059669;      /* Dark Emerald */
  --primary-light: #34d399;      /* Light Emerald */
  --accent-color: #06b6d4;       /* Cyan */
  --accent-light: #22d3ee;       /* Light Cyan */
  
  --bg-dark: #070b13;            /* Deep Tech Slate */
  --bg-card: rgba(13, 22, 40, 0.7); /* Glassmorphic dark card */
  --border-glass: rgba(16, 185, 129, 0.15); /* Tech green border */
  
  --text-main: #e2e8f0;          /* Gray 200 */
  --text-muted: #94a3b8;         /* Gray 400 */
  --text-highlight: #ffffff;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.dp-body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Background grid details */
body.dp-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 900px;
  background: radial-gradient(circle at 80% 15%, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 15% 45%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* 2. Header & Navigation */
.site-header {
  position: relative;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(7, 11, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-highlight);
}

.logo-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #fff 50%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.site-nav .nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary-light);
}

/* 3. Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 10;
}

.hero-code-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(16, 185, 129, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-highlight);
  background: linear-gradient(to right, #ffffff, #a7f3d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* 4. Mock Video Player */
.video-player-container {
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  background: rgba(9, 15, 28, 0.8) !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
}

.player-header {
  background: #111827;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.player-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.player-screen {
  position: relative;
  height: 240px;
  background: #080c14;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button-overlay {
  position: absolute;
  z-index: 10;
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.play-button-overlay:hover {
  transform: scale(1.1);
  background: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.play-icon {
  color: #fff;
  font-size: 1.25rem;
  margin-left: 4px;
}

.screen-code-snippet {
  width: 90%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a7f3d0;
  opacity: 0.45;
  user-select: none;
}

.player-controls {
  background: #111827;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-play {
  color: var(--primary-light);
  cursor: pointer;
  font-size: 0.9rem;
}

.progress-bar {
  flex-grow: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
}

.time-display {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* 5. Checkout Enrollment Form */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-form-panel h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-highlight);
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.form-group input,
.form-group select {
  width: 100%;
  background: rgba(7, 11, 19, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 0.5rem;
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-group select option {
  background: #0f172a;
  color: #fff;
}

.pricing-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-light);
}

.price-old {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-weight: 400;
}

.btn-submit-match {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #000;
  border: none;
  border-radius: 0.5rem;
  padding: 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: var(--transition-smooth);
}

.btn-submit-match:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

/* 6. Layout Grid & Main Content */
.main-layout-container {
  max-width: 1200px;
  margin: 3rem auto 6rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.layout-grid {
  display: grid;
  grid-template-columns: 2.3fr 0.7fr;
  gap: 3rem;
}

@media (max-width: 968px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.main-article {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2.5rem;
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.meta-item.category {
  color: var(--primary-light);
}

.meta-item.date {
  color: var(--text-muted);
}

.article-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-highlight);
  letter-spacing: -0.025em;
}

.article-content {
  font-size: 1.05rem;
  color: #cbd5e1;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  color: var(--text-highlight);
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem 0;
  font-weight: 700;
}

/* Curriculum Accordion style */
.curriculum-accordion {
  margin: 3rem 0;
}

.curriculum-accordion h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-highlight);
  border-left: 3px solid var(--primary-color);
  padding-left: 0.75rem;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.module-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-light);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.item-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-highlight);
}

.item-body {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.reference-disclaimer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reference-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 7. Sidebar Components */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-highlight);
  font-family: var(--font-sans);
}

.card-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--primary-light);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

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

/* Stats list */
.stats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stats-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
  min-width: 60px;
}

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

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-link {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.link-bullet {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.link-text {
  display: flex;
  flex-direction: column;
}

.link-title {
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.sidebar-link:hover .link-title {
  color: var(--primary-light);
}

.link-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.benefit-list li strong {
  color: var(--primary-light);
}

/* 8. Footer Section */
.site-footer {
  background: #04070d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 2rem 2rem 2rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 1.25rem;
}

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

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.footer-col ul a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}
