/* ════════════════════════════════════════════
   LIVE — Transmissão ao vivo do Prêmio Influency.me
   Botão no menu + pop-up   |   Lógica: js/live.js
   ════════════════════════════════════════════ */

/* ── Botão no menu (desktop) ───────────────── */
.nav-links a.nav-link-live {
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 59, 59, 0.45);
  background: rgba(255, 59, 59, 0.12);
  animation: live-pulse 2.2s ease-in-out infinite;
}
.nav-links a.nav-link-live:hover {
  background: rgba(255, 59, 59, 0.26);
  border-color: rgba(255, 59, 59, 0.75);
}

/* Depois da live, o botão vira "Vencedores 2026" (js/live.js) e usa o estilo padrão dos outros itens do menu (css/style.css). Sem destaque próprio. */

/* Bolinha vermelha "ao vivo" */
.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3b3b;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7);
  animation: live-dot 1.6s ease-out infinite;
}
.nav-links a.nav-link-live .live-dot {
  margin-top: 4px;
}
.nav-mobile-menu a.nav-link-live {
  color: #fff !important;
  font-weight: 700;
  background: rgba(255, 59, 59, 0.14);
  border: 1px solid rgba(255, 59, 59, 0.4);
}
.nav-mobile-menu a.nav-link-live .live-dot {
  margin: 0 5px;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
  50%      { box-shadow: 0 0 0 5px rgba(255, 59, 59, 0.16); }
}
@keyframes live-dot {
  0%   { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

/* ── Pop-up ─────────────────────────────────── */
.live-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 5, 12, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.live-modal.open {
  opacity: 1;
  visibility: visible;
}

.live-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: linear-gradient(160deg, #1a1a2e 0%, #0e0e1c 100%);
  border: 1px solid rgba(232, 184, 75, 0.35);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.3s ease;
  font-family: var(--font-body, 'Roboto', sans-serif);
  color: #fff;
}
.live-modal.open .live-modal-card {
  transform: translateY(0) scale(1);
}

.live-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.live-modal-close:hover { background: rgba(0, 0, 0, 0.85); }

/* Thumbnail do vídeo */
.live-modal-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}
.live-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.live-modal-thumb:hover img { transform: scale(1.04); }
.live-modal-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
}
.live-modal-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ff0000;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.5);
  transition: transform 0.2s;
}
.live-modal-thumb:hover .live-modal-play {
  transform: translate(-50%, -50%) scale(1.1);
}
.live-modal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 59, 59, 0.6);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Corpo */
.live-modal-body {
  padding: 24px 26px 26px;
  text-align: center;
}
.live-modal-date {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8b84b;
}
.live-modal-title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
}
.live-modal-text {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
.live-modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff2d2d 0%, #d10000 100%);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.35);
  transition: transform 0.2s, filter 0.2s;
}
.live-modal-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.live-modal-dismiss {
  margin-top: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 10px;
}
.live-modal-dismiss:hover { color: #fff; }

/* ── Estado "Em breve" (antes da live) ───────── */
.live-dot--soon {
  background: #e8b84b;
  animation: live-dot-soon 2s ease-out infinite;
}
@keyframes live-dot-soon {
  0%   { box-shadow: 0 0 0 0 rgba(232, 184, 75, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(232, 184, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 184, 75, 0); }
}
/* Botão do menu antes da live: dourado em vez de vermelho */
.nav-links a.nav-link-live:has(.live-dot--soon) {
  border-color: rgba(232, 184, 75, 0.45);
  background: rgba(232, 184, 75, 0.1);
  animation: none;
}
.nav-links a.nav-link-live:has(.live-dot--soon):hover {
  background: rgba(232, 184, 75, 0.22);
  border-color: rgba(232, 184, 75, 0.75);
}
.nav-mobile-menu a.nav-link-live:has(.live-dot--soon) {
  background: rgba(232, 184, 75, 0.12);
  border-color: rgba(232, 184, 75, 0.4);
}

/* Thumbnail sem link e sem play (ainda não dá para assistir) */
.live-modal-thumb--soon { cursor: default; }
.live-modal-thumb--soon img {
  filter: grayscale(0.4) brightness(0.7);
}
.live-modal-thumb--soon:hover img { transform: none; }
.live-modal-badge--soon { border-color: rgba(232, 184, 75, 0.6); }
.live-modal-clock {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(10, 10, 18, 0.7);
  border: 2px solid rgba(232, 184, 75, 0.7);
  color: #e8b84b;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contagem regressiva */
.live-countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 0 0 12px;
}
.live-cd-box {
  min-width: 64px;
  padding: 10px 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 184, 75, 0.3);
  text-align: center;
}
.live-cd-box strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.live-cd-box span {
  display: block;
  margin-top: 6px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8b84b;
}
.live-cd-sep {
  padding-top: 8px;
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(232, 184, 75, 0.6);
}
.live-modal-note {
  margin: 0 0 18px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}
/* CTA discreto antes da live (não promete que já está no ar) */
.live-modal-cta--soon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
  font-size: 0.9rem;
}
.live-modal-cta--soon:hover { background: rgba(255, 255, 255, 0.14); filter: none; }

@media (max-width: 480px) {
  .live-modal { padding: 14px; }
  .live-modal-body { padding: 20px 18px 22px; }
  .live-modal-title { font-size: 1.25rem; }
  .live-modal-play { width: 56px; height: 56px; font-size: 1.25rem; }
  .live-modal-clock { width: 52px; height: 52px; font-size: 1.3rem; }
  .live-cd-box { min-width: 56px; padding: 8px 4px 6px; }
  .live-cd-box strong { font-size: 1.6rem; }
  .live-countdown { gap: 4px; }
}

/* ════════════════════════════════════════════
   CTA fixo na página do Prêmio (#live)
   ════════════════════════════════════════════ */
.lcta {
  position: relative;
  padding: 56px 24px;
  background: linear-gradient(180deg, #0A0A12 0%, #14102a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lcta-inner { max-width: 1100px; margin: 0 auto; }
.lcta-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(232, 184, 75, 0.4);
  background: linear-gradient(135deg, #1b1236 0%, #120a26 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(232, 184, 75, 0.05);
}
.lcta-card:not(:has(.lcta-thumb)) { grid-template-columns: 1fr; }
.lcta-card--live { border-color: rgba(255, 59, 59, 0.55); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(255, 59, 59, 0.08); }

.lcta-thumb {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  background: #000;
}
.lcta-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.lcta-thumb:hover img { transform: scale(1.04); }
.lcta-card:not(.lcta-card--live) .lcta-thumb img { filter: brightness(0.75); }
.lcta-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 18, 0.82);
  border: 1px solid rgba(232, 184, 75, 0.6);
  color: #fff;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.lcta-badge--live { border-color: rgba(255, 59, 59, 0.8); }
.lcta-play {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 72px; height: 72px;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.92);
  color: #fff; font-size: 1.7rem;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s;
}
.lcta-thumb:hover .lcta-play { transform: translate(-50%, -50%) scale(1.1); }

.lcta-body { padding: 36px 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.lcta-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #e8b84b;
}
.lcta-eyebrow--live { color: #ff6b6b; }
.lcta-title {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800; line-height: 1.12;
  color: #fff;
}
.lcta-title em { font-style: normal; color: #e8b84b; }
.lcta-card--live .lcta-title em { color: #ff6b6b; }
.lcta-text {
  margin: 0 0 20px;
  font-size: 0.98rem; line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
}
.lcta-body .live-countdown { justify-content: flex-start; margin: 0 0 22px; }
.lcta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 12px;
  background: #e8b84b;
  color: #0A0A12;
  font-weight: 800; font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(232, 184, 75, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.lcta-btn i { font-size: 1.25rem; }
.lcta-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(232, 184, 75, 0.5); }
.lcta-btn--live { background: #ff3b3b; color: #fff; box-shadow: 0 10px 30px rgba(255, 59, 59, 0.4); }
.lcta-btn--live:hover { box-shadow: 0 14px 38px rgba(255, 59, 59, 0.6); }
.lcta-note { margin-top: 12px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }

@media (max-width: 820px) {
  .lcta { padding: 36px 16px; }
  .lcta-card { grid-template-columns: 1fr; }
  .lcta-thumb { min-height: 0; aspect-ratio: 16 / 9; }
  .lcta-body { padding: 26px 22px 28px; align-items: stretch; text-align: center; }
  .lcta-eyebrow { justify-content: center; }
  .lcta-text { margin-left: auto; margin-right: auto; }
  .lcta-body .live-countdown { justify-content: center; }
  .lcta-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a.nav-link-live, .live-dot { animation: none; }
  .live-modal, .live-modal-card, .live-modal-thumb img { transition: none; }
}
