/* ============================================================
   Igreja de Cristo – Orizona, GO
   Arquivo: live.css  —  Página de Transmissão ao Vivo
   Importa e estende style.css
   ============================================================ */

/* ============================================================
   HERO DA PÁGINA LIVE  (substitui o hero de fundo cheio)
   ============================================================ */
.live-hero {
  padding: 9rem 0 3rem;
  background: var(--black);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* linha decorativa de fundo */
.live-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 1px;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  opacity: 0.5;
}

.live-hero .section-label { justify-content: center; }

.live-hero .hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1rem;
  /* reusa a animação já definida em style.css */
  opacity: 0;
  animation: fadeUp 0.9s 0.3s forwards;
}

.live-hero .hero-title em { font-style: italic; color: var(--gold); }

.live-hero .hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(232, 227, 218, 0.65);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s forwards;
}


/* ============================================================
   LIVE STATUS  (badge de status ao vivo / offline)
   ============================================================ */
.live-status-wrap {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid;
  transition: var(--transition);
}

/* Estado: AO VIVO */
.live-badge.is-live {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.4);
  color: #ef4444;
}

.live-badge.is-live .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: livePulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* Estado: OFFLINE */
.live-badge.is-offline {
  background: var(--gold-dim);
  border-color: var(--border);
  color: var(--text-muted);
}

.live-badge.is-offline .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}


/* ============================================================
   PLAYER SECTION
   ============================================================ */
.live-player-section {
  background: var(--black);
  padding: 2rem 0 5rem;
}

.live-player-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

/* ── Player principal ── */
.live-player-wrap {
  position: relative;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  /* Loading shimmer antes do iframe carregar */
  min-height: 200px;
}

.live-player-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 169, 110, 0.06) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  pointer-events: none;
  z-index: 0;
}

.live-player-wrap.player-ready::before { display: none; }

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.live-player-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.live-player-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  z-index: 1;
}

/* ── Offline placeholder ── */
.live-offline-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 340px;
  gap: 1.2rem;
}

.live-offline-placeholder.visible { display: flex; }

.offline-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.live-offline-placeholder h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--white);
}

.live-offline-placeholder p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.8;
}

/* ── Painel lateral (horários + chat) ── */
.live-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Card genérico de sidebar */
.sidebar-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.sidebar-card-header svg { opacity: 0.7; flex-shrink: 0; }

/* Próximos cultos */
.schedule-list { padding: 0.4rem 0; }

.schedule-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid rgba(200, 169, 110, 0.08);
  transition: background 0.25s;
}

.schedule-item:last-child { border-bottom: none; }
.schedule-item:hover { background: rgba(200, 169, 110, 0.04); }

.schedule-day {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--gold);
  min-width: 44px;
  line-height: 1;
}

.schedule-info { flex: 1; }
.schedule-info h5 {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.schedule-info p { font-size: 0.75rem; color: var(--text-muted); }

.schedule-time {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Chat placeholder */
.chat-placeholder {
  padding: 2rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.chat-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.chat-placeholder p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Área de iframe do chat ao vivo do YouTube */
.live-chat-frame {
  width: 100%;
  height: 420px;
  border: 0;
  display: none; /* mostra via JS quando ao vivo */
}

.live-chat-frame.visible { display: block; }


/* ============================================================
   SEÇÃO DE BOAS-VINDAS ONLINE
   ============================================================ */
.online-welcome {
  background: var(--dark);
  padding: 5rem 0;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.welcome-steps { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }

.welcome-step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  min-width: 36px;
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.step-body p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Card de boas-vindas */
.welcome-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.welcome-card::after {
  content: '✦';
  position: absolute;
  bottom: -1.5rem; right: 1.5rem;
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.04;
  pointer-events: none;
  line-height: 1;
}

.welcome-card blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.welcome-card blockquote em { color: var(--gold); font-style: italic; }

.welcome-card cite {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2rem;
}

.welcome-card .btn { width: 100%; justify-content: center; }


/* ============================================================
   SEÇÃO DE MENSAGENS RECENTES  (reusa .sermons do style.css)
   ============================================================ */
.live-sermons {
  background: #0b0b0b;
}

/* reutiliza tudo de .sermons — só adiciona margem top da section-label */
.live-sermons .sermons-header {
  margin-bottom: 2.5rem;
}


/* ============================================================
   CTA FINAL  (banner dourado de ação)
   ============================================================ */
.live-cta-banner {
  background: var(--dark);
  padding: 5rem 0;
}

.live-cta-inner {
  background: var(--gold);
  border-radius: 8px;
  padding: 3.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.live-cta-inner::before {
  content: '"';
  position: absolute;
  right: 2rem; top: -3rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.07);
  pointer-events: none;
}

.live-cta-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.live-cta-text p {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
}

.live-cta-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border: none;
}

.btn-dark:hover {
  background: var(--dark2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.btn-ghost-dark:hover {
  border-color: var(--black);
  transform: translateY(-2px);
}


/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .live-player-layout {
    grid-template-columns: 1fr;
  }

  .live-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .live-chat-frame { height: 300px; }
}

@media (max-width: 900px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .live-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
  }

  .live-cta-actions { justify-content: center; }

  .live-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .live-hero { padding: 8rem 0 2rem; }

  .live-cta-inner { padding: 2rem 1.5rem; }

  .live-cta-inner::before { display: none; }
}
