/* ============================================================
   THE FINANCE SHOW — Main Stylesheet
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --blue: #0757BA;
  --blue-dark: #054a9e;
  --blue-light: #e8f0fc;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --card-radius: 12px;
  --ease: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--blue);
  border-bottom: none;
  box-shadow: 0 2px 12px rgba(7, 87, 186, 0.3);
}

.nav-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  transition: opacity var(--ease);
}

.nav-brand:hover {
  opacity: 0.85;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--ease);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--ease);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(140deg, #0757BA 0%, #0a6fd4 100%);
  color: var(--white);
  padding: 72px 24px;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-logo {
  width: 210px;
  height: 210px;
  border-radius: 20px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-tagline {
  font-size: 1.1rem;
  opacity: 0.88;
  line-height: 1.75;
  margin-bottom: 36px;
}

.platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  transition: transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.platform-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.platform-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.platform-spotify { background: #1DB954; }
.platform-apple   { background: #B150E2; }
.platform-youtube { background: #FF0000; }
.platform-deezer  { background: #FF0092; }
.platform-amazon  { background: #1A9BD7; }

/* ---------- Section base ---------- */
.section-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

/* ---------- Episodes ---------- */
.episodes {
  background: #f0f6ff;
}

.episodes .section-title {
  margin-bottom: 32px;
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.episode-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  border: 1px solid #ccddf5;
  border-left: 4px solid var(--blue);
  border-radius: var(--card-radius);
  background: var(--white);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.episode-card:hover {
  box-shadow: 0 8px 28px rgba(7, 87, 186, 0.13);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.episode-thumb {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--blue-light);
  flex-shrink: 0;
}

.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.episode-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.episode-badge {
  background: var(--blue);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.episode-badge-trailer {
  background: var(--gray-500);
}

.episode-new {
  background: #dcfce7;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.episode-date,
.episode-duration {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.episode-sep {
  color: var(--gray-400);
  font-size: 0.82rem;
}

.episode-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.4;
  margin-bottom: 8px;
}

.episode-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.btn-listen {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue);
  color: white;
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--ease), transform var(--ease);
}

.btn-listen:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* ---------- Subscribe ---------- */
.subscribe {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.subscribe-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 0;
}

.subscribe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px;
  border-radius: var(--card-radius);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease);
}

.subscribe-card svg {
  width: 34px;
  height: 34px;
}

.subscribe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.subscribe-card-spotify { background: #1DB954; }
.subscribe-card-apple   { background: #B150E2; }
.subscribe-card-youtube { background: #FF0000; }
.subscribe-card-deezer  { background: #FF0092; }
.subscribe-card-amazon  { background: #1A9BD7; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--blue);
  color: white;
}

.newsletter-inner {
  text-align: center;
  max-width: 600px;
}

.newsletter-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  opacity: 0.9;
}

.newsletter h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.newsletter > .section-container > p,
.newsletter-inner > p {
  opacity: 0.85;
  font-size: 1rem;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto 16px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  color: var(--gray-900);
  background: white;
  min-width: 0;
}

.newsletter-form input::placeholder {
  color: var(--gray-400);
}

.newsletter-form button {
  padding: 14px 24px;
  background: var(--gray-900);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease);
}

.newsletter-form button:hover {
  background: var(--gray-700);
}

.newsletter-note {
  font-size: 0.8rem;
  opacity: 0.65;
  margin-bottom: 0 !important;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  padding: 52px 24px;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.footer-logo {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color var(--ease);
}

.footer-nav a:hover {
  color: white;
}

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

.footer-social a {
  color: var(--gray-500);
  transition: color var(--ease);
  line-height: 0;
}

.footer-social a:hover {
  color: white;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 900px) {
  .subscribe-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .subscribe-card:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 0 auto;
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 768px) {
  /* Navbar */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    padding: 8px 0;
    border-bottom: none;
    gap: 0;
    box-shadow: 0 6px 16px rgba(7, 87, 186, 0.35);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
  }

  .nav-menu li:last-child a {
    border-bottom: none;
  }

  /* Hero */
  .hero {
    padding: 48px 24px;
  }

  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .hero-logo {
    width: 140px;
    height: 140px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  /* Episodes */
  .section-container {
    padding: 56px 20px;
  }

  .episode-card {
    flex-direction: column;
    gap: 16px;
  }

  .episode-thumb {
    width: 100%;
    height: 200px;
  }

  /* Subscribe */
  .subscribe-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    gap: 10px;
  }

  .newsletter-form input,
  .newsletter-form button {
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 480px) {
  .platform-grid {
    gap: 8px;
  }

  .platform-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .subscribe-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 18px 20px;
    gap: 16px;
  }

  .subscribe-card svg {
    width: 28px;
    height: 28px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
