/* CSS/horarios.css - FINAL: ESTÉTICA PREMIUM COM 5PX DE RESPIRO TÁTICO */

/* --- 1. FUNDO --- */
.page-horarios {
  background:
    radial-gradient(
      1200px 600px at 50% 0%,
      rgba(255, 255, 255, 0.08),
      rgba(0, 0, 0, 0) 55%
    ),
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.9)),
    url("../img/PRETO.jpg") no-repeat center/cover;

  color: var(--text);
  min-height: 100vh;
}

/* --- 2. HERO SECTION --- */
.page-horarios .page-hero {
  text-align: center;
  padding-bottom: 0px !important;
  margin-bottom: 0px !important;
  animation: fadeIn 0.8s ease-out;
}

.page-horarios .page-hero h1 {
  margin-bottom: 5px !important;
}

.schedule-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 10px;
}

/* --- 3. FILTROS --- */
.filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 0px !important;
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 10px 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 0px;
}

.filter-btn:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  box-shadow: 0 0 15px rgba(156, 230, 156, 0.3);
  font-weight: 700;
}

.filter-count {
  display: none;
}

/* --- 4. INFO SELEÇÃO --- */
.schedule-selected {
  min-height: 1.2rem;
  font-family: "Orbitron", sans-serif;
  color: var(--accent);
  margin-top: 15px !important;
  margin-bottom: 10px !important;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.schedule-selected:empty {
  display: none !important;
}

/* --- 5. BOTÃO CTA --- */
.schedule-cta {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  padding: 0;
}

.schedule-cta.is-enabled {
  opacity: 1;
  max-height: 100px;
  margin-bottom: 20px;
  transform: translateY(0);
  pointer-events: auto;
  padding: 10px 0; /* CORREÇÃO: Devolver padding só quando aparece */
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px; /* Ligeiramente maior para mais presença */

  /* ESTADO ATIVO: Usa o verde neon como fundo padrão */
  background: var(--accent);
  border: 1px solid var(--accent);

  /* TEXTO: Preto para contraste máximo sobre o verde neon */
  color: #000;

  font-family: "Orbitron", sans-serif;
  font-size: 1rem; /* Aumentado para 1rem */
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700; /* Negrito */

  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px; /* Pequeno arredondamento tático */

  /* A MÁGICA: Ativa a animação de pulso quando o botão é habilitado */
  animation: pulseNeon 2s infinite;
}

.cta-btn:hover:not(:disabled) {
  background: #fff; /* Muda para branco no hover */
  border-color: #fff;
  color: #000;
  box-shadow: 0 0 30px rgba(156, 230, 156, 0.6);
  transform: translateY(-2px); /* Pequena elevação */
}

.cta-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: rgba(255, 255, 255, 0.2);
  animation: none; /* Desativa o pulso quando desativado */
}

/* --- 6. GRID DOS DIAS --- */
.days-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: min(1200px, 100%);
  margin: 0 auto;
  align-items: start;

  /* NOVO: Este espaço SÓ existe quando as aulas estão visíveis! */
  margin-top: 40px !important; /* Distância elegante para os filtros de cima */
  margin-bottom: 40px !important; /* Distância elegante para o "Inicia a Jornada" em baixo */
  padding: 0;
}

/* --- 7. CARTÃO DO DIA --- */
.day {
  position: relative;
  background: rgba(12, 12, 12, 0.85);
  border: 1px solid rgba(156, 230, 156, 0.3);
  padding: 20px 15px;
  border-radius: 0px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
  align-items: center;
}

.day:hover {
  border-color: rgba(156, 230, 156, 0.3) !important;
  transform: none !important;
  box-shadow: none !important;
  background: rgba(12, 12, 12, 0.85) !important;
}

.day-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 10px;
  margin-bottom: 5px;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
}

.day-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 8px var(--accent);
}

/* --- 8. LISTA DE AULAS --- */
.classes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* --- 9. BOTÃO DA AULA --- */
.class {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 10px;
  border-radius: 0px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.class:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(156, 230, 156, 0.5) !important;
  box-shadow: 0 0 10px rgba(156, 230, 156, 0.1) !important;
}

.class.is-selected {
  background: rgba(156, 230, 156, 0.15) !important;
  border: 1px solid var(--accent) !important;
  box-shadow: 0 0 15px rgba(156, 230, 156, 0.15) !important;
}

.modalidade {
  font-family: "Orbitron", sans-serif;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.class.is-selected .modalidade {
  color: var(--accent);
}

.turma {
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(34, 34, 34, 0.8);
  border: 1px solid rgba(156, 230, 156, 0.3);
  padding: 3px 10px;
  border-radius: 99px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.horario {
  color: var(--accent);
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-top: 2px;
}

.treinador {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.8;
  margin-top: 0;
}

/* 10. RESPONSIVO E ANIMAÇÕES */
.is-hidden {
  display: none !important;
}

.schedule-empty {
  text-align: center;
  color: var(--muted);
  margin-top: 40px;
  font-size: 1.1rem;
}

/* --- DEFINIÇÃO DA ANIMAÇÃO DE PULSO --- */
@keyframes pulseNeon {
  0% {
    box-shadow: 0 0 0 0 rgba(156, 230, 156, 0.7);
    transform: scale(1);
  }
  70% {
    /* Cria o "brilho" que expande */
    box-shadow: 0 0 20px 10px rgba(156, 230, 156, 0);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(156, 230, 156, 0);
    /* Pequeno "shrink" final para dar ritmo */
    transform: scale(0.98);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .days-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .days-grid {
    grid-template-columns: 1fr;
  }
}
