/*
 * Tides Talk v10 Overrides
 *
 * This file defines updated styles for the v10 release of the Tides Talk site.  By
 * introducing new class names and a new filename (`style-v10.css`), we force
 * browsers and the Netlify CDN to fetch fresh assets and avoid stale caches.
 *
 * The rules here override the base styles in `style.css` and build on the
 * previous v9 overrides.  They adjust the podcast grid to a 16:9 aspect
 * ratio, tidy up the merchandise layout, reformat the therapy table on
 * mobile devices and swap section backgrounds as requested.  Colours and
 * spacing are coordinated with the brand palette defined in `style.css`.
 */

:root {
  /* Distinct background for the podcast and merchandise sections */
  --podcast-bg-v10: #E5EEF6;
}

/* === Podcast Section v10 === */
.podcast-section-v10 {
  background-color: var(--podcast-bg-v10);
  color: var(--text-dark);
  padding: 6rem 1rem;
}

.podcast-section-v10 h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--deep-ocean);
}

.podcast-section-v10 .section-description {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive grid: 3 items per row on large screens, 2 on medium, 1 on small */
.podcast-grid-v10 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.podcast-grid-v10 .podcast-item {
  flex-basis: calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .podcast-grid-v10 .podcast-item {
    flex-basis: calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .podcast-grid-v10 .podcast-item {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.podcast-grid-v10 .podcast-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--teal);
}

/* 16:9 video wrapper */
.podcast-grid-v10 .video-wrapper-v10 {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.podcast-grid-v10 .video-wrapper-v10 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* === Merchandise Section v10 === */
/* Inherit the lighter podcast background for consistency */
.merch-section {
  background-color: var(--podcast-bg-v10);
  color: var(--text-dark);
}

.merch-featured-v10 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2rem;
}

.product-embed-v10 {
  background-color: var(--deep-ocean);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 300px;
  max-width: 300px;
}

@media (max-width: 600px) {
  .merch-featured-v10 {
    flex-direction: column;
    align-items: center;
  }
  .product-embed-v10 {
    max-width: 90%;
  }
  .view-all-merch-v10 {
    text-align: center;
  }
}

.view-all-merch-v10 {
  text-align: center;
  margin-top: 2rem;
}

/* === Therapy Section v10 === */
.therapy-section-v10 {
  background-color: var(--sand);
  color: var(--deep-ocean);
  padding: 6rem 1rem;
}

.therapy-container-v10 {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.therapy-logo-v10 {
  max-width: 300px;
  width: 100%;
}

.services-table-v10 {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
  word-break: break-word;
}

.services-table-v10 .coming-soon-tag-v10 {
  background-color: var(--teal);
  color: var(--text-light);
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  display: block;
  margin-top: 0.25rem;
}

@media (max-width: 800px) {
  .therapy-container-v10 {
    flex-direction: column;
    align-items: center;
  }
  .therapy-logo-v10 {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .services-table-v10 {
    display: block;
  }
  .services-table-v10 .services-header {
    display: none;
  }
  .services-table-v10 .service-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--deep-ocean);
  }
  .services-table-v10 .service-row > div {
    margin-bottom: 0.5rem;
  }
}

/* === Brand Hub and Donate Section Background Swap v10 === */
.brandhub-section {
  background-color: var(--deep-ocean);
  color: var(--text-light);
}

.brandhub-section h2 {
  color: var(--teal);
}

.donate-section {
  background-color: var(--sand);
  color: var(--deep-ocean);
}

.donate-section h2 {
  color: var(--deep-ocean);
}

.donate-section p {
  color: var(--deep-ocean);
}

/* === Footer Text Colour v10 === */
.site-footer p {
  color: #AFC6D4;
}