/* ══════════════════════════════════════
   Shared styles across all pages
   ══════════════════════════════════════ */

@font-face {
  font-family: "Saira";
  src: url("fonts/SairaCondensed-Thin.ttf") format("truetype");
}

body, html {
  height: 100%;
  margin: 0;
  background-color: black;
  font-family: 'Saira', sans-serif;
  overflow-x: hidden;
}

/* ── Hero section (shared across podcasts, memorial, video sermons) ── */
.hero {
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  width: 100%;
  position: relative;
}

.hero-layout {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.hero h1 {
  color: white;
  text-align: center;
  font-size: 10em;
  padding: 0;
  margin: 0;
  padding-right: 50px;
  border-right: 4px solid rgba(255, 255, 255, 0.6);
  height: 320px;
  line-height: 300px;
}

.hero a {
  color: white;
  text-decoration: none;
}

/* ── Glass buttons (shared between memorial + podcasts) ── */
.glass-btn-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.glass-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  font-family: 'Saira', sans-serif;
  font-size: 1.35em;
  font-weight: 300;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(6px);
  color: white;
}

.glass-btn:active {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.glass-btn i {
  font-size: 0.9em;
  width: 24px;
  text-align: center;
  opacity: 0.8;
}

/* ── Fullscreen video overlay (used by memorial) ── */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.video-overlay.active {
  opacity: 1;
  visibility: visible;
}

.overlay-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: white;
  font-size: 2em;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10000;
  padding: 8px;
}

.overlay-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.overlay-video {
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
}

.overlay-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* ── Responsive: tablets (992px) ── */
@media (max-width: 992px) {
  .hero-layout {
    flex-direction: column;
    gap: 30px;
  }

  .hero h1 {
    font-size: 6em;
    border-right: none;
    padding-right: 0;
    height: auto;
    line-height: normal;
    border-bottom: 4px solid rgba(255, 255, 255, 0.6);
    padding-bottom: 16px;
  }

  .glass-btn-group {
    align-items: center;
  }

  .glass-btn {
    min-width: 260px;
    justify-content: center;
    font-size: 1.2em;
  }

  .glass-btn:hover {
    transform: translateY(-3px);
  }

  .glass-btn:active {
    transform: translateY(-1px);
  }
}

/* ── Responsive: phones (576px) ── */
@media (max-width: 576px) {
  .hero-layout {
    gap: 24px;
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 3.5em;
  }

  .glass-btn {
    font-size: 1.05em;
    padding: 14px 22px;
    min-width: 220px;
    justify-content: center;
  }

  .overlay-close {
    top: 16px;
    right: 16px;
    font-size: 1.6em;
  }

  .overlay-video {
    width: 95%;
  }
}
