/* =============================================================
   HOME STREAM — Central de Atividades
   Usa tokens de main.css via herança de :root
   ============================================================= */

/* ─── INTRO LOCK ────────────────────────────────────────────── */
/* Durante o intro: bloqueia scroll da página mas navbar/footer ficam visíveis */
body.intro-lock {
  overflow: hidden;
}

/* ─── INTRO VIDEO ───────────────────────────────────────────── */
#introVideo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;   /* abaixo da navbar (1000) — navbar aparece por cima */
  background: #000;
  overflow: hidden;
}

#introVideo video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Garante cobertura total independente do ratio do vídeo */
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center center;
  background: #000;
}

#introVideo.intro-hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

/* ─── STREAM HERO ───────────────────────────────────────────── */
.stream-hero {
  position: relative;
  padding-block: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.stream-hero__container {
  position: relative;
  z-index: 2;
  max-width: 1150px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
  text-align: center;
}

.stream-hero__copy {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(16px, 3vw, 28px);
}

.stream-hero__title {
  font-size: clamp(28px, 6vw, 62px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 2px 8px rgba(0,0,0,0.65), 0 0 24px rgba(0,0,0,0.35);
}

.stream-hero__subtitle {
  max-width: 680px;
  margin-inline: auto;
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.90), 0 2px 6px rgba(0,0,0,0.50);
}

.stream-hero__accent {
  color: #18d26b;
  font-weight: 900;
}

.stream-hero__pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #18d26b;
  border: 1px solid rgba(24, 210, 107, 0.45);
  background: rgba(8, 18, 14, 0.28);
  backdrop-filter: blur(6px);
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.80);
}

/* ─── CAROUSEL ──────────────────────────────────────────────── */
.stream-carousel {
  position: relative;
  width: 100%;
  margin-top: 20px;
  padding-inline: 52px;
  box-sizing: border-box;
}

.stream-carousel__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-block: 4px 12px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stream-carousel__track::-webkit-scrollbar { display: none; }

/* ─── TILE ──────────────────────────────────────────────────── */
.stream-tile {
  flex: 0 0 calc((100% - 28px) / 3);
  min-height: 0;
  scroll-snap-align: start;
  border-radius: 20px;
  padding: 16px;
  text-align: left;
  background: rgba(52, 120, 72, 0.28);   /* igual ao page-card das abas */
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(8, 40, 18, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
  position: relative;
}

.stream-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 40px rgba(8, 40, 18, 0.20);
}

.stream-tile__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.stream-tile__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  color: #18d26b;
  border: 1px solid rgba(24, 210, 107, 0.45);
  background: rgba(8, 18, 14, 0.24);
  letter-spacing: 0.03em;
}

.stream-tile__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 10px;
  background: rgba(24, 210, 107, 0.14);
  border: 1px solid rgba(24, 210, 107, 0.30);
  font-size: 16px;
}

.stream-tile__title {
  margin: 0 0 6px;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 900;
  color: #ffffff;
}

.stream-tile__desc {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

.stream-tile__list {
  margin: 0;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.70);
  font-size: 12px;
}

.stream-tile__list li + li { margin-top: 3px; }

/* ─── SETAS ─────────────────────────────────────────────────── */
.stream-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  cursor: pointer;
  transition: 0.2s;
  backdrop-filter: blur(6px);
  z-index: 3;
}

.stream-carousel__btn:hover {
  transform: translateY(-50%) scale(1.06);
  border-color: rgba(24, 210, 107, 0.45);
  color: #18d26b;
}

.stream-carousel__btn--prev { left: 4px; }
.stream-carousel__btn--next { right: 4px; }

/* ─── DOTS ──────────────────────────────────────────────────── */
.stream-dots {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.stream-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.stream-dot--active {
  background: rgba(24, 210, 107, 0.70);
  border-color: rgba(24, 210, 107, 0.85);
}

/* ─── TABLET ────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .stream-tile {
    flex: 0 0 calc((100% - 14px) / 2);
    min-height: 168px;
  }
}

/* ─── MOBILE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .stream-hero {
    padding-top: 10px;
    padding-bottom: 14px;
  }

  .stream-hero__copy { margin-bottom: 10px; }

  .stream-carousel { padding-inline: 6px; margin-top: 10px; }

  .stream-carousel__track {
    gap: 8px;
    padding-block: 2px 8px;
    align-items: flex-start; /* tiles com altura do próprio conteúdo */
  }

  .stream-tile {
    flex: 0 0 46%;        /* 2 visíveis + dica do 3º */
    width: 46%;
    min-height: unset !important;
    height: auto !important;
    align-self: flex-start;
    padding: 8px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  /* Esconde ícone e badge no mobile — mais espaço para a foto de fundo */
  .stream-tile__icon  { display: none; }
  .stream-tile__top   { display: none; }

  .stream-tile__title { font-size: 12px; font-weight: 900; margin-bottom: 3px; }
  .stream-tile__desc  { font-size: 10.5px; line-height: 1.3; margin-bottom: 4px; }
  .stream-tile__list  { font-size: 9.5px; padding-left: 12px; }
  .stream-tile__list li + li { margin-top: 2px; }

  .stream-carousel__btn { display: none; }

  .stream-dots { margin-top: 8px; }
}

@media (max-width: 420px) {
  .stream-tile { min-height: 145px; }
  .stream-tile__title { font-size: 14px; }
}
