/* Sermon showcase page — v2 mockup port.
   Used by: src/views/churches/sermon-hub.ejs
   No inline styles or style= attributes anywhere in the EJS. */

:root {
  --teal-950: #0e352d;
  --teal-900: #14453a;
  --teal-700: #1d5c4e;
  --teal-100: #e3ece8;
  --gold: #c9a24b;
  --gold-deep: #a9863a;
  --cream: #f4f2ea;
  --card: #ffffff;
  --ink: #1f2a27;
  --ink-soft: #4c5b56;
  --line: #e2ddcf;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.sermon-page {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

/* ---- layout wrapper ---- */
body.sermon-page .wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- hero ---- */
body.sermon-page .hero {
  background: linear-gradient(160deg, var(--teal-950), var(--teal-900) 60%, var(--teal-700));
  color: #fff;
  padding: 36px 0 44px;
}

/* splash.css sets `.hero .wrap { text-align:center }`; the sermon page's hero is
   left-aligned per the mockup, so override it at higher specificity. */
body.sermon-page .hero .wrap {
  text-align: left;
}

.crumbs {
  font-size: 13px;
  color: #bcd3cb;
  margin-bottom: 22px;
}

.crumbs a {
  color: var(--gold);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

body.sermon-page .hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  max-width: 900px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 14px;
  color: #d7e4df;
  align-items: center;
}

.meta-row a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .4);
}

.meta-row .scripture {
  color: var(--gold);
  font-weight: 600;
}

.capsule {
  margin-top: 18px;
  max-width: 900px;
  font-size: 16.5px;
  line-height: 1.65;
  color: #eef4f1;
  font-family: 'Fraunces', serif;
  font-weight: 400;
}

/* ---- video facade ---- */
.video-wrap {
  margin-top: -1px;
  background: linear-gradient(to bottom, var(--teal-700) 50%, var(--cream) 50%);
}

.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: 0 auto;
  background: #0a0a0a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(14, 53, 45, .35);
  cursor: pointer;
  display: block;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-facade__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-facade__play::before {
  content: '';
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  border: 3px solid rgba(255, 255, 255, .85);
  transition: background .2s;
}

.video-facade__play::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 26px;
  border-color: transparent transparent transparent #fff;
  margin-left: 6px;
}

.video-facade:hover .video-facade__play::before {
  background: rgba(0, 0, 0, .82);
}

/* Injected iframe by video-facade.js */
.video-facade iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 14px;
  display: block;
}

/* ---- content grid section ---- */
section.block {
  padding: 56px 0 8px;
}

.block h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--teal-950);
}

.block h2 em {
  font-style: italic;
  color: var(--gold-deep);
}

.block .sub {
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 6px;
  max-width: 680px;
}

.tally {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal-700);
}

.tally b {
  color: var(--gold-deep);
}

/* ---- card grid ---- */
.cgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

@media (max-width: 980px) {
  .cgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .cgrid { grid-template-columns: 1fr; }
}

/* ---- shared card ---- */
.piece {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: var(--ink);
}

.piece:hover {
  box-shadow: 0 10px 26px rgba(20, 69, 58, .12);
  transform: translateY(-2px);
}

.piece .type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-700);
  padding-right: 34px;
}

.piece .count {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-left: 6px;
  text-transform: none;
  letter-spacing: 0;
}

.piece p.ex {
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink);
  margin: 10px 0 12px;
  line-height: 1.55;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.piece a.go,
.piece .go {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold-deep);
  text-decoration: none;
}

.piece a.go:hover {
  text-decoration: underline;
}

/* ---- locked card variant ---- */
.piece.locked .padlock {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(169, 134, 58, .35);
}

.piece.locked .padlock svg {
  width: 13px;
  height: 13px;
  fill: var(--teal-950);
}

.blurbox {
  position: relative;
  margin: 10px 0 10px;
  border-left: 3px solid var(--line);
  padding-left: 12px;
  overflow: hidden;
}

.blurbox p {
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  filter: blur(4.5px);
  user-select: none;
  pointer-events: none;
}

.blurbox::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55));
}

.piece.locked .desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  line-height: 1.5;
}

.piece.locked:hover .go {
  text-decoration: underline;
}

/* ---- more-from-church strip ---- */
.more-church {
  margin-top: 44px;
}

.more-church h2 {
  font-size: clamp(20px, 2.4vw, 26px);
}

.more-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .more-list { grid-template-columns: 1fr; }
}

.more-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .2s;
  display: block;
}

.more-item:hover {
  box-shadow: 0 8px 22px rgba(20, 69, 58, .12);
}

.more-item .t {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--teal-950);
  line-height: 1.3;
}

.more-item .d {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 6px;
}

.browse-library { margin: 16px 0 8px; }
.browse-library a { font-weight: 600; color: var(--teal-950); }
.browse-library a:hover { color: var(--ink); }

/* ---- before-sunday strip ---- */
.before {
  margin-top: 44px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.before .txt {
  max-width: 680px;
}

.before h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--teal-950);
}

.before h3 em {
  font-style: italic;
  color: var(--gold-deep);
}

.before p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 6px;
}

.before a.btn {
  background: var(--teal-900);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 100px;
  padding: 11px 20px;
  white-space: nowrap;
}

/* ---- closing CTA ---- */
.close-cta {
  background: linear-gradient(160deg, var(--teal-900), var(--teal-950));
  color: #fff;
  text-align: center;
  padding: 64px 24px;
  margin-top: 64px;
}

.close-cta h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 36px);
}

.pastebox {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 22px auto 0;
}

.pastebox input {
  flex: 1;
  border: none;
  border-radius: 100px;
  padding: 14px 20px;
  font-size: 14px;
}

.pastebox button {
  background: var(--gold);
  color: var(--teal-950);
  border: none;
  border-radius: 100px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.close-cta small {
  display: block;
  margin-top: 12px;
  color: #bcd3cb;
  font-size: 13px;
}
