/* ============================================
   BrightNest Club - Styles
   Modern, friendly kids look | Pastel palette
   ============================================ */

:root {
  /* Pastel palette */
  --mint: #a8e6cf;
  --mint-dark: #7dd3a8;
  --sky-blue: #b5e8f7;
  --sky-blue-dark: #7dd4ed;
  --soft-yellow: #fff9c4;
  --soft-yellow-dark: #fff59d;
  --soft-coral: #ffccbc;
  --soft-coral-dark: #ffab91;
  --white: #ffffff;
  --off-white: #fafafa;
  --text-dark: #2d3436;
  --text-muted: #636e72;
  
  /* Spacing & typography */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 4px 20px rgba(45, 52, 54, 0.08);
  --shadow-hover: 0 8px 30px rgba(45, 52, 54, 0.12);
  --transition: 0.3s ease;
  --font-display: 'Nunito', 'Segoe UI', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--off-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

a {
  color: var(--sky-blue-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--text-dark);
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
  background: var(--white);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--mint), var(--sky-blue));
  border-radius: var(--radius-sm);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-dark);
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
  background: var(--mint);
  color: var(--text-dark);
}

.nav-link.active {
  background: var(--mint);
  color: var(--text-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn:focus {
  outline: 2px solid var(--sky-blue-dark);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--mint), var(--mint-dark));
  color: var(--text-dark);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--soft-coral), var(--soft-coral-dark));
  color: var(--text-dark);
}

.btn-youtube {
  background: #ff0000;
  color: white;
}

.btn-youtube:hover {
  background: #cc0000;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-footer {
  margin-top: 1rem;
}

/* Watch on YouTube section (homepage) */
.youtube-cta-section {
  text-align: center;
}

.youtube-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.youtube-channel-link {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 1rem;
  }
  
  .main-nav.is-open {
    display: flex;
  }
}

/* ============================================
   Main content
   ============================================ */

main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* ============================================
   Hero section
   ============================================ */

.hero {
  text-align: center;
  padding: 3rem 1rem 4rem;
  background: linear-gradient(180deg, var(--sky-blue) 0%, var(--mint) 50%, var(--soft-yellow) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================
   Sections
   ============================================ */

.section {
  margin-bottom: 3rem;
}

.section-title {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.section-intro {
  max-width: 700px;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

/* What we do */
.bullet-list {
  list-style: none;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.bullet-list li:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hover);
}

.bullet-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.bullet-icon.mint { background: var(--mint); }
.bullet-icon.blue { background: var(--sky-blue); }
.bullet-icon.coral { background: var(--soft-coral); }

/* Episode cards */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.episode-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.episode-card .embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--soft-yellow);
}

.episode-card .embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.episode-card .embed-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--soft-yellow), var(--soft-coral));
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
}

.episode-card .card-content {
  padding: 1.25rem;
}

.episode-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.episode-card .card-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.episode-card .watch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Featured episodes on homepage */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.featured-section {
  margin-bottom: 2.5rem;
}

.featured-section h2 {
  margin-bottom: 1rem;
}

/* For Parents section */
.parents-note {
  background: linear-gradient(135deg, var(--mint), var(--sky-blue));
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.parents-note h2 {
  margin-bottom: 1rem;
}

.parents-note p {
  color: var(--text-dark);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--mint);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact {
  margin-top: 1rem;
}

.footer-contact a {
  color: var(--sky-blue);
}

.footer-contact a:hover {
  color: var(--white);
}

/* ============================================
   Page-specific: Privacy & Terms
   ============================================ */

.legal-content {
  max-width: 700px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ============================================
   Utility: SVG placeholder illustration
   ============================================ */

.illustration-placeholder {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}
