/* =========================================================
   BOGAS TEAM FIGHT CENTER - DESIGN SYSTEM (THEME.CSS)
========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Rajdhani:wght@600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300..900&display=swap");

:root {
  /* Cores base */
  --bg: transparent;
  --panel: rgba(12, 12, 12, 0.95);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.6);
  --accent: #9ce69c;

  /* Interações */
  --hover-silver: #e0e0e0;
  --hover-glow: rgba(255, 255, 255, 0.3);

  /* Estrutura */
  --header-h: 72px;
  --max: 1200px;
  --pad-x: 24px;
  --r-card: 2px;
  --r-lg: 18px; /* Cantos dos painéis grandes */
  --r-btn: 0px;

  /* Linhas e Sombras */
  --line: rgba(255, 255, 255, 0.08);
  --rim: rgba(255, 255, 255, 0.15);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);

  --t: 150ms ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --- 1. FUNDO GLOBAL --- */
html,
body {
  height: 100%;
  margin: 0;
  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;
  background-attachment: fixed;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

.main-content {
  padding-top: var(--header-h);
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  padding-bottom: 80px;
}

/* --- 2. HERO GLOBAL (Cabeçalhos) --- */
.page-hero {
  text-align: center;
  padding: 20px 0 10px;
  animation: fadeIn 0.8s ease-out;
}

.page-hero h1 {
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 4vw, 2.2rem);
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.page-hero p {
  font-family: "Montserrat", sans-serif;
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
  text-align: center;
}

/* --- 3. TÍTULOS DE SECÇÃO --- */
.section-head {
  text-align: center;
  margin: 0 auto 30px;
  max-width: 800px;
}
.section-head h2 {
  font-family: "Orbitron", sans-serif;
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  text-transform: uppercase;
  margin: 0 0 12px;
  letter-spacing: 0.5px;
}

/* --- 4. PAINÉIS DE VIDRO/NEON (Usados na Home e Espaço) --- */
.glass-panel {
  position: relative;
  padding: 30px clamp(20px, 4vw, 40px);
  margin-top: 30px;
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(156, 230, 156, 0.22);
  box-shadow:
    var(--shadow),
    0 0 0 3px rgba(156, 230, 156, 0.06),
    0 0 22px rgba(156, 230, 156, 0.08);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(
      120% 90% at 50% 0%,
      rgba(156, 230, 156, 0.08),
      rgba(156, 230, 156, 0) 60%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0) 42%
    );
}
.glass-panel::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(156, 230, 156, 0.65),
    transparent
  );
  box-shadow: 0 0 12px rgba(156, 230, 156, 0.18);
}

/* --- 5. CARTÕES GENÉRICOS --- */
.card {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--line);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}
.card:hover {
  border-color: rgba(156, 230, 156, 0.4);
  box-shadow: var(--shadow);
}
.card i {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.card:hover i {
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
.card h3 {
  margin: 0 0 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}
.card p {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- 6. BOTÕES (Estilo Antigo Preservado para Fallbacks) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 54px;
  padding: 0 36px;
  border-radius: var(--r-btn);
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rim);
  color: #fff;
  transition: all var(--t);
  backdrop-filter: blur(4px);
}
.btn:hover {
  background: rgba(156, 230, 156, 0.08);
  border-color: rgba(156, 230, 156, 0.5);
  box-shadow: 0 0 25px rgba(156, 230, 156, 0.15);
  transform: translateY(-2px);
}

/* --- PILLS (Destaques da Home) --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}
.pill i {
  color: var(--accent);
}

/* --- FOOTER CENTRALIZADO --- */
.site-footer {
  background-color: #020202;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-socials a {
  color: var(--accent);
  font-size: 1.4rem;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.footer-socials a:hover {
  color: #fff;
  transform: translateY(-3px);
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Montserrat", sans-serif;
}

/* --- UTILITÁRIOS --- */
.hidden {
  display: none !important;
}

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

/* =========================================================
   COMPONENTE GLOBAL: BOTÃO TÁTICO
   Pode ser usado em qualquer página (<a> ou <button>)
========================================================= */
.btn-tatico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  padding: 14px 26px;
  border-radius: 8px;
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-tatico:hover,
.btn-tatico.is-active,
.btn-tatico[aria-pressed="true"] {
  background: rgba(156, 230, 156, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(156, 230, 156, 0.2);
  text-shadow: 0 0 8px rgba(156, 230, 156, 0.4);
}

/* =========================================================
   COMPONENTE GLOBAL: MODAL DE GALERIA (SLIDER)
========================================================= */
.slider-section {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.3s ease,
    opacity 0.3s ease;
}

.slider-section.is-active {
  visibility: visible;
  opacity: 1;
}

.slider-wrapper {
  position: relative;
  width: min(1000px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.slider-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.slider-caption {
  position: static;
  margin-top: 20px;
  font-family: "Orbitron", sans-serif !important;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.close-slider {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1100;
  width: 45px !important;
  height: 45px !important;
  padding: 0 !important;
}

.slider-btn.prev,
.slider-btn.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) !important;
  z-index: 1050;
  width: 50px !important;
  height: 50px !important;
  padding: 0 !important;
}

.slider-btn.prev {
  left: -12px;
}
.slider-btn.next {
  right: -12px;
}

.slider-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.slider-thumb {
  width: 70px;
  height: 45px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid rgba(156, 230, 156, 0.15);
  border-radius: 4px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.slider-thumb:hover {
  transform: scale(1.05);
}

.slider-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(156, 230, 156, 0.15);
}

.close-slider.btn-tatico:hover {
  transform: rotate(90deg) !important;
  background: rgba(255, 77, 77, 0.15) !important;
  border-color: #ff4d4d !important;
  color: #ff4d4d !important;
  box-shadow: 0 0 20px rgba(255, 77, 77, 0.2) !important;
  text-shadow: 0 0 8px rgba(255, 77, 77, 0.4) !important;
}

@media (max-width: 768px) {
  .slider-stage {
    aspect-ratio: 4 / 3;
  }
  .close-slider {
    top: 10px;
    right: 10px;
    width: 35px !important;
    height: 35px !important;
    font-size: 1.2rem;
  }
  .slider-btn.prev,
  .slider-btn.next {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.4rem;
  }
  .slider-btn.prev {
    top: 45% !important;
    left: 10px;
  }
  .slider-btn.next {
    top: 45% !important;
    right: 10px;
  }
  .slider-caption {
    font-size: 1rem;
    padding: 0 10px;
  }
}

/* =========================================================
   COMPONENTE GLOBAL: MODAL TÁTICO E OPÇÕES (Contactos e Loja)
========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-panel {
  width: 90%;
  max-width: 450px;
  position: relative;
  padding: 40px 30px;
  border-radius: 12px;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-hidden .modal-panel {
  transform: translateY(20px);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 4px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #ff4d4d;
  border-color: #ff4d4d;
}

.modal-title {
  font-family: "Orbitron", sans-serif;
  color: #fff;
  font-size: 1.3rem;
  margin: 0 0 10px;
  letter-spacing: 2px;
  text-align: center;
}

.modal-desc {
  font-family: "Montserrat", sans-serif;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* BOTÃO CALL TO ACTION GLOBAL (Contactos e Merch) */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  background: rgba(156, 230, 156, 0.05);
  color: #fff;
  border: 1px solid rgba(156, 230, 156, 0.4);
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover:not(:disabled) {
  background: rgba(156, 230, 156, 0.15);
  border-color: #9ce69c;
  box-shadow: 0 0 20px rgba(156, 230, 156, 0.2);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

/* GRELHA DE SELEÇÃO TÁTICA (Turmas e Tamanhos) */
.tactic-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 5px;
}

.tactic-opt {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: "Orbitron", sans-serif;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.tactic-opt:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(156, 230, 156, 0.4);
}

.tactic-opt.is-selected {
  background: rgba(156, 230, 156, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px rgba(156, 230, 156, 0.2);
}

/* Sub-elementos (Usados nos Contactos) */
.tactic-opt .opt-time {
  font-family: "Orbitron", sans-serif;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  margin: 0;
}

.tactic-opt.is-selected .opt-time {
  color: var(--accent);
}

.tactic-opt .opt-coach {
  font-family: "Montserrat", sans-serif;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}
/* =========================================================
   COMPONENTE GLOBAL: INICIA A JORNADA
========================================================= */
.journey-section {
  width: min(1050px, 100%);
  margin: 30px auto 40px; /* Margem normal alinhada com as outras páginas */
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.journey-alert {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}

.journey-alert .alert-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}

.journey-alert p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  margin-left: 12px;
}

/* Responsividade Mobile */
@media (max-width: 980px) {
  .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .journey-grid {
    grid-template-columns: 1fr;
  }
}
