/* ============================
   LBC WATCH PAGE
   Mobile-first responsive design
   ============================ */

/* =====================
   FIX: Remove header gap on Watch page
   ===================== */

body.page-template-page-watch .site-header {
  margin-bottom: 0;
}

body.page-template-page-watch main,
body.page-template-page-watch .lbc-main {
  padding-top: 0;
}

/* HERO SPACING MOVED TO lbc-overrides.css - DO NOT ADD HERE
   @see lbc-overrides.css for consolidated hero spacing rules */

/* Prevent horizontal overflow */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

main {
  background: var(--lbc-cream);
  width: 100%;
}

/* =====================
   CONTAINER
   ===================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 641px) {
  .container {
    padding-inline: 1.5rem;
  }
}

/* =====================
   1. HERO SECTION
   HERO SPACING MOVED TO lbc-overrides.css
   ===================== */
.watch-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Hero padding/min-height handled by lbc-overrides.css */
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0b1021 0%, #1e293b 50%, #0b1021 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 33, 0.85);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lbc-gold);
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(208, 167, 95, 0.4);
  border-radius: 999px;
}

.hero-kicker.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lbc-error);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #fff;
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #e5e7eb;
  margin: 0 0 2rem;
  max-width: 600px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-direction: column;
  width: 100%;
}

.hero-actions .btn {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

@media (min-width: 641px) {
  /* HERO PADDING MOVED TO lbc-overrides.css */

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  
  .hero-lead {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: row;
    width: auto;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: auto;
    max-width: none;
    margin: 0;
  }
}

/* =====================
   BUTTONS - REDUCED GLOW
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lbc-gold), #facc6b);
  color: var(--lbc-navy);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(208, 167, 95, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(208, 167, 95, 0.25);
}

/* Base btn-outline for watch page (dark backgrounds) */
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

/* Hero-specific btn-outline - higher specificity to override canon-shell */
.watch-hero .btn-outline,
.watch-hero .hero-actions .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.watch-hero .btn-outline:hover,
.watch-hero .hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--lbc-navy);
  border-color: var(--lbc-navy);
}

.btn-outline-dark:hover {
  background: var(--lbc-navy);
  color: #fff;
}

/* =====================
   2. SERVICE TIMES REMINDER
   ===================== */
.times-reminder {
  background: #fff;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.times-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.times-text h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lbc-navy);
  margin: 0 0 0.25rem;
}

.times-text p {
  font-size: 0.95rem;
  color: var(--lbc-text-soft);
  margin: 0;
}

.times-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.time-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--lbc-cream);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-day {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lbc-text-soft);
}

.badge-time {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--lbc-navy);
}

@media (min-width: 641px) {
  .times-reminder {
    padding: 2.5rem 0;
  }
  
  .times-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .times-badges {
    gap: 1rem;
  }
  
  .time-badge {
    padding: 1rem 1.5rem;
  }
}

/* =====================
   3. LIVE BANNER (when live)
   ===================== */
.live-banner {
  background: var(--lbc-error);
  padding: 1.5rem 0;
}

.live-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.live-content p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.live-banner .btn-primary {
  background: #fff;
  color: var(--lbc-error);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.live-banner .btn-primary:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (min-width: 641px) {
  .live-content {
    flex-direction: row;
    justify-content: center;
  }
}

/* =====================
   SECTION HEADERS - CENTERED
   ===================== */
.section-header,
.video-section .section-header,
.how-section .section-header,
.archive-section .section-header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--lbc-gold);
  margin-bottom: 0.5rem;
}

.section-kicker.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lbc-error);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lbc-navy);
  margin: 0;
}

@media (min-width: 641px) {
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* =====================
   4. VIDEO SECTION
   ===================== */
.video-section {
  padding: 3rem 0;
  background: var(--lbc-cream);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: var(--lbc-navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #0b1021 100%);
}

.placeholder-content {
  text-align: center;
  padding: 2rem;
  max-width: 400px;
}

.placeholder-content svg {
  color: var(--lbc-gold);
  margin-bottom: 1.5rem;
}

.placeholder-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
}

.placeholder-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.video-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}

@media (min-width: 641px) {
  .video-section {
    padding: 4rem 0;
  }

  .video-actions {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

/* =====================
   4b. RECENT VIDEOS GRID (YouTube API)
   ===================== */
.recent-videos-section {
  padding: 3rem 0;
  background: #fff;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.recent-videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.recent-video-card {
  background: var(--lbc-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recent-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.recent-video-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.recent-video-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--lbc-navy);
}

.recent-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recent-video-card:hover .recent-video-thumbnail img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.recent-video-card:hover .play-overlay {
  opacity: 1;
}

.play-overlay svg {
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.recent-video-info {
  padding: 1rem 1.25rem;
}

.recent-video-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lbc-navy);
  margin: 0 0 0.35rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-video-date {
  font-size: 0.8rem;
  color: var(--lbc-text-soft);
}

.recent-videos-cta {
  margin-top: 2rem;
  text-align: center;
}

@media (min-width: 480px) {
  .recent-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .recent-videos-section {
    padding: 4rem 0;
  }

  .recent-videos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .recent-video-info {
    padding: 1.25rem 1.5rem;
  }

  .recent-video-title {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .recent-videos-grid {
    gap: 2rem;
  }
}

/* =====================
   5. HOW TO WATCH
   ===================== */
.how-section {
  padding: 3rem 0;
  background: #fff;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.how-card {
  text-align: center;
  padding: 1.5rem;
}

.how-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--lbc-gold), #facc6b);
  color: var(--lbc-navy);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.how-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--lbc-navy);
  margin: 0 0 0.5rem;
}

.how-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--lbc-text-soft);
  margin: 0;
}

.how-card p a {
  color: var(--lbc-gold);
  text-decoration: none;
  font-weight: 600;
}

.how-card p a:hover {
  text-decoration: underline;
}

@media (min-width: 641px) {
  .how-section {
    padding: 4rem 0;
  }
  
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .how-card {
    padding: 2rem;
  }
}

/* =====================
   6. SERMON ARCHIVE PREVIEW
   ===================== */
.archive-section {
  padding: 3rem 0;
  background: var(--lbc-navy);
}

.archive-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.archive-text {
  text-align: center;
}

.archive-text .section-kicker {
  color: var(--lbc-gold);
}

.archive-text h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0.5rem 0 1rem;
}

.archive-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.5rem;
}

.archive-visual {
  display: flex;
  justify-content: center;
}

.archive-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: #fff;
}

.stack-item svg {
  flex-shrink: 0;
  color: var(--lbc-gold);
}

.stack-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

@media (min-width: 641px) {
  .archive-section {
    padding: 4rem 0;
  }
  
  .archive-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .archive-text {
    text-align: left;
  }
  
  .archive-text h2 {
    font-size: 2rem;
  }
}

/* =====================
   7. CTA SECTION
   ===================== */
.cta-section {
  padding: 3.5rem 0 4rem;
  background: var(--lbc-cream);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--lbc-navy);
}

.cta-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--lbc-text-soft);
  margin: 0 0 2rem;
}

.cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-direction: column;
  width: 100%;
}

.cta-buttons .btn {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.cta-section .btn-outline {
  border-color: var(--lbc-navy);
  color: var(--lbc-navy);
  background: transparent;
}

.cta-section .btn-outline:hover {
  background: var(--lbc-navy);
  color: #fff;
}

@media (min-width: 641px) {
  .cta-section {
    padding: 4rem 0;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .cta-buttons {
    flex-direction: row;
    width: auto;
    gap: 1rem;
  }
  
  .cta-buttons .btn {
    width: auto;
    max-width: none;
    margin: 0;
  }
}