/* AIToday Live - shared site styles
 * Used by all public pages except briefing.html and stats/**
 */

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

:root {
  --bg: #FAFAF7;
  --bg-warm: #FFF8F0;
  --bg-card: #FFFFFF;
  --accent: #FF9F45;
  --accent-light: #FFF3E6;
  --accent-medium: #FFE4C8;
  --accent-dark: #E8872E;
  --navy: #14285A;
  --navy-soft: #2A3F7A;
  --blue: #2765A7;
  --blue-light: #EBF3FC;
  --text: #14285A;
  --text-soft: #5A6B8A;
  --text-muted: #8E9AB5;
  --border: rgba(20, 40, 90, 0.08);
  --shadow-sm: 0 2px 8px rgba(20, 40, 90, 0.05);
  --shadow-md: 0 8px 30px rgba(20, 40, 90, 0.08);
  --shadow-lg: 0 16px 50px rgba(20, 40, 90, 0.1);
  --shadow-accent: 0 8px 30px rgba(255, 159, 69, 0.2);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Nunito', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.blob-1 { width: 500px; height: 500px; background: rgba(255, 159, 69, 0.08); top: -100px; right: -100px; }
.blob-2 { width: 400px; height: 400px; background: rgba(39, 101, 167, 0.06); bottom: -50px; left: -100px; }
.blob-3 { width: 600px; height: 600px; background: rgba(255, 159, 69, 0.05); top: 50%; left: -200px; }

/* Navigation - solid background by default; transparent variant for index hero */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s;
}
nav.nav-transparent { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
nav.nav-transparent.scrolled {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 28px;
  box-shadow: var(--shadow-sm);
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.logo-text span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--navy); }

.nav-cta {
  font-weight: 600 !important;
  color: #fff !important;
  background: var(--accent);
  padding: 10px 22px;
  border-radius: 12px;
  transition: all 0.3s !important;
}
.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 102;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger span + span { margin-top: 5px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(3.5px, 3.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(3.5px, -3.5px); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 44px 0; background: var(--bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-left { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--navy); }
.social-links { display: flex; gap: 12px; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all 0.3s;
}
.social-link:hover { color: var(--accent); border-color: var(--accent); }
.social-link svg { width: 16px; height: 16px; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Episode card "Meer info" text-link and action row (link + play button) */
.ep-actions { display: flex; align-items: center; gap: 14px; }
.ep-more-info {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.ep-more-info:hover { color: var(--accent-dark); transform: translateX(2px); }
.ep-more-info:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.ep-more-info svg { width: 14px; height: 14px; }

/* Skeleton placeholders shown while partials load (prevents layout shift) */
.nav-skeleton { height: 76px; }
.footer-skeleton { min-height: 140px; }

/* Responsive */
@media (max-width: 900px) {
  .hamburger { display: block; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 28px 28px;
    box-shadow: -8px 0 30px rgba(20, 40, 90, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 101;
    pointer-events: none;
  }
  .nav-links.open { transform: translateX(0); pointer-events: auto; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links .nav-cta { margin-top: 16px; text-align: center; border-bottom: none; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 40, 90, 0.3);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
  }
  .nav-overlay.open { opacity: 1; pointer-events: auto; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  nav { padding: 14px 18px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-left { flex-direction: column; align-items: center; }
}
