/*
 * sermons.css
 * Styles specific to the /sermons page.
 * Depends on styles.css being loaded first for design tokens
 * (--ink, --cream, --cream-2, --gold, --gold-deep, --text-dark, --text-muted, --radius, .container, .btn, .eyebrow, etc.).
 * Load order in <head>: styles.css, then sermons.css.
 *
 * No embeds, no thumbnails. Every message links straight out to
 * YouTube and/or Telegram. Light backgrounds throughout, matching
 * /visit — no dark/ink sections on this page (footer excepted, it's
 * global).
 */

/* =========================================================
   PAGE HERO (same pattern used on /visit)
   ========================================================= */
.page-hero {
  position: relative;
  height: 46vh;
  min-height: 340px;
  max-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink) var(--hero-img, none) center / cover no-repeat;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 9, 7, 0.55) 0%,
    rgba(10, 9, 7, 0.35) 40%,
    rgba(10, 9, 7, 0.85) 100%
  );
}
.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 44px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.18s ease;
}
.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb i {
  font-size: 0.6rem;
  opacity: 0.6;
}
.breadcrumb span {
  color: var(--gold);
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 600;
  max-width: 640px;
}
.page-hero p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  max-width: 520px;
}

/* ---- shared section heading ---- */
.section-head h2 {
  font-size: 2.1rem;
  font-weight: 600;
  margin: 10px 0 12px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* =========================================================
   RECOMMENDED MESSAGE
   ========================================================= */
.sermon-featured {
  background: var(--cream-2);
  padding: 90px 0 100px;
}
.featured-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid rgba(20, 18, 14, 0.08);
  border-radius: var(--radius);
  padding: 42px 44px 40px;
  /* box-shadow: 0 24px 60px -40px rgba(30, 25, 10, 0.3); */
}
.featured-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-2);
  color: var(--gold-deep);
  font-size: 1.15rem;
}
.featured-body {
  flex: 1;
  min-width: 0;
}
.featured-body .eyebrow {
  display: block;
  margin-bottom: 8px;
}
.featured-body h2 {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.32;
  margin-bottom: 14px;
}
.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
}
.featured-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}
.featured-meta i {
  color: var(--gold-deep);
  font-size: 0.76rem;
}
.featured-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 560px;
}
.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.featured-actions .btn {
  font-size: 0.72rem;
  padding: 12px 20px;
}

/* =========================================================
   ALL MESSAGES (row list, matches /visit service-list pattern)
   ========================================================= */
.sermon-list-section {
  padding: 100px 0;
}

/* ---- filter chips ---- */
.sermon-filters {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 36px;
  scrollbar-width: none;
}
.sermon-filters::-webkit-scrollbar {
  display: none;
}
.sermon-filter-chip {
  flex: none;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(20, 18, 14, 0.16);
  background: var(--cream);
  color: var(--text-dark);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.sermon-filter-chip:hover {
  border-color: var(--gold-deep);
}
.sermon-filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ---- row list ---- */
.sermon-list {
  width: 100%;
  border-top: 1px solid rgba(20, 18, 14, 0.12);
}
.sermon-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(20, 18, 14, 0.12);
}
.sermon-row-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-2);
  color: var(--gold-deep);
  font-size: 0.9rem;
}
.sermon-row-main {
  flex: 1;
  min-width: 0;
}
.sermon-row-cadence {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.sermon-row-new {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #211a0c;
  background: var(--gold);
  padding: 2px 7px;
  border-radius: 999px;
}
.sermon-row-main h3 {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 5px;
}
.sermon-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.sermon-row-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}
.sermon-row-actions {
  flex: none;
  display: flex;
  gap: 8px;
}
.sermon-row-actions .btn {
  font-size: 0.66rem;
  padding: 9px 14px;
}
.sermon-row-actions .btn i {
  font-size: 0.8rem;
}

.sermon-list-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px dashed rgba(20, 18, 14, 0.18);
  border-radius: var(--radius);
  margin-top: 20px;
}

/* =========================================================
   TELEGRAM CTA (light card, not a dark section)
   ========================================================= */
.telegram-cta {
  padding: 0 0 100px;
}
.telegram-cta-card {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
  background: var(--cream-2);
  border: 1px solid rgba(20, 18, 14, 0.08);
  border-radius: var(--radius);
  padding: 40px 44px;
}
.telegram-cta-icon {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(217, 164, 65, 0.14);
  border: 1px solid rgba(217, 164, 65, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  font-size: 1.55rem;
}
.telegram-cta-copy {
  flex: 1;
  min-width: 240px;
}
.telegram-cta-copy h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 6px 0 8px;
}
.telegram-cta-copy p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 440px;
}
.telegram-cta-card .btn {
  flex: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 720px) {
  .page-hero {
    height: 40vh;
    min-height: 260px;
    max-height: 360px;
  }
  .page-hero-content {
    padding-bottom: 26px;
  }
  .breadcrumb {
    font-size: 0.66rem;
    gap: 6px;
    margin-bottom: 10px;
  }
  .page-hero h1 {
    font-size: clamp(1.5rem, 6.5vw, 2.1rem);
    max-width: 100%;
  }
  .page-hero p {
    margin-top: 10px;
    font-size: 0.85rem;
    max-width: 100%;
  }

  .sermon-featured {
    padding: 60px 0;
  }
  .featured-card {
    flex-direction: column;
    gap: 16px;
    padding: 30px 22px 26px;
  }
  .featured-badge {
    left: 22px;
  }
  .featured-body h2 {
    font-size: 1.28rem;
  }
  .featured-meta {
    gap: 12px;
    margin-bottom: 14px;
  }
  .featured-desc {
    font-size: 0.86rem;
    margin-bottom: 22px;
  }
  .featured-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .sermon-list-section {
    padding: 64px 0;
  }
  .section-head h2 {
    font-size: 1.5rem;
  }
  .sermon-filters {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }
  .sermon-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 20px 4px;
  }
  .sermon-row-icon {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }
  .sermon-row-actions {
    justify-content: flex-start;
  }
  .sermon-row-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .telegram-cta {
    padding: 0 0 64px;
  }
  .telegram-cta-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 28px 22px;
  }
  .telegram-cta-copy h2 {
    font-size: 1.3rem;
  }
  .telegram-cta-card .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .page-hero {
    height: 34vh;
    min-height: 220px;
    max-height: 300px;
  }
  .page-hero-content {
    padding-bottom: 18px;
  }
  .breadcrumb {
    font-size: 0.6rem;
    margin-bottom: 8px;
  }
  .page-hero h1 {
    font-size: clamp(1.3rem, 7vw, 1.6rem);
  }
  .page-hero p {
    font-size: 0.78rem;
    margin-top: 8px;
  }
  .sermon-row-main h3 {
    font-size: 0.94rem;
  }
}