/* VideoShufflr Course page — standalone marketing layout */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-deep: #05060f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --grad-cta: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  --shadow-glow: 0 16px 40px rgba(99, 102, 241, 0.28);
  --font-family: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1200px;
  --pad-x: 20px;
  --radius-md: 14px;
  --radius-lg: 16px;
}

@media (min-width: 768px) {
  :root { --pad-x: 28px; }
}

@media (min-width: 1024px) {
  :root { --pad-x: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.course-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse at 10% -10%, #1f2937 0%, transparent 55%),
    radial-gradient(ellipse at 100% 0%, #0b1324 0%, transparent 50%),
    var(--bg-deep);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(5, 6, 15, 0.88);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px var(--pad-x);
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  min-width: 0;
}

.brand-badge {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, #6366f1, #8b5cf6) padding-box,
    linear-gradient(135deg, #f472b6, #60a5fa, #a78bfa) border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}

.brand-badge img {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 20px;
}

@media (min-width: 900px) {
  .header-nav { display: flex; }
}

.header-nav a {
  position: relative;
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 6px;
  transition: color 0.24s ease;
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.95), rgba(96, 165, 250, 0.95));
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.26s ease, opacity 0.2s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text-primary);
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after,
.header-nav a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.12s ease, background 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff !important;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-glass);
  border-color: var(--border);
  color: var(--text-primary) !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary) !important;
}

.btn-ghost:hover {
  color: var(--text-primary) !important;
  border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 480px) {
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn { padding: 0 12px; font-size: 13px; min-height: 38px; }
}

/* ─── Hero ─── */
.course-hero {
  padding: 40px 0 36px;
  text-align: center;
}

@media (min-width: 768px) {
  .course-hero { padding: 56px 0 48px; }
}

.course-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.badge-pro {
  background: var(--grad-primary);
  color: #fff;
}

.badge-community {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.course-hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  padding: 0 4px;
}

.gradient-text {
  background: linear-gradient(135deg, #f472b6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.course-hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.course-hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ─── Content stack ─── */
.course-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 56px;
}

@media (min-width: 768px) {
  .course-content { gap: 28px; padding-bottom: 72px; }
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  /* Override legacy style.css max-height/overflow if ever loaded */
  max-height: none !important;
  overflow: visible !important;
}

@media (min-width: 768px) {
  .course-card { padding: 32px 28px; }
}

.course-card-highlight {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.03));
  border-color: rgba(99, 102, 241, 0.28);
}

.course-card-header {
  margin-bottom: 24px;
}

.course-card-header h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.course-card-sub {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 52rem;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

.feat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15);
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #a5b4fc;
  font-size: 22px;
}

.feat-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feat-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Curriculum grid */
.help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 540px) {
  .help-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .help-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (min-width: 1100px) {
  .help-grid { grid-template-columns: repeat(4, 1fr); }
}

.help-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15);
}

.help-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
  font-size: 20px;
  margin-bottom: 10px;
}

.help-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.help-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* List & actions */
.course-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

.course-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #a5b4fc;
  font-weight: 700;
}

.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-actions-center {
  justify-content: center;
}

@media (max-width: 479px) {
  .course-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* Bottom CTA banner */
.course-cta-banner {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.3);
}

@media (min-width: 768px) {
  .course-cta-banner { padding: 48px 36px; }
}

.course-cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.course-cta-banner p {
  margin: 0 0 24px;
  color: var(--text-secondary);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 72px 0 42px;
  background: linear-gradient(180deg, rgba(10, 12, 26, 0.68) 0%, rgba(5, 6, 15, 0.98) 100%);
}

.footer-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(4, minmax(132px, 1fr));
  gap: 48px;
  align-items: start;
}

.footer-brand-block {
  max-width: 300px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.footer-brand-block p {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-column a,
.footer-legal a {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text-primary);
}

.footer-column a:hover,
.footer-column a:focus-visible {
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.54);
  background: rgba(99, 102, 241, 0.16);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
    max-width: 560px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 48px;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 52px 0 40px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    font-size: 17px;
  }

  .footer-column {
    gap: 11px;
  }

  .footer-column h2 {
    margin-bottom: 4px;
  }

  .footer-column a,
  .footer-legal a {
    font-size: 14px;
  }

  .footer-bottom {
    gap: 20px;
    margin-top: 38px;
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
  }
}
