/* ==========================================================================
   SALU RP — Página de Recrutamento
   Paleta: fundo escuro + neon amarelo/laranja/verde
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-card: #161616;
  --border: #262626;

  --yellow: #ffd700;
  --orange: #ff6a00;
  --green: #39ff14;

  --text: #ffffff;
  --text-soft: #e0e0e0;
  --text-muted: #aaaaaa;

  --radius: 14px;
  --radius-sm: 8px;

  --font-title: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;

  --shadow-green: 0 0 20px rgba(57, 255, 20, 0.35);
  --shadow-orange: 0 0 20px rgba(255, 106, 0, 0.35);
  --shadow-yellow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* ---------- Reset básico ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-title); color: var(--text); }

img { max-width: 100%; display: block; }

a { color: var(--yellow); text-decoration-color: rgba(255, 215, 0, 0.4); }
a:hover { color: var(--orange); }
a:visited { color: var(--yellow); }

.text-gradient {
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Utilidades ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  color: #101010;
  box-shadow: var(--shadow-orange);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.55);
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn--outline:hover {
  background: rgba(57, 255, 20, 0.1);
  box-shadow: var(--shadow-green);
}

.btn--small { padding: 0.55rem 1.2rem; font-size: 0.9rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  height: 32px;
  width: auto;
}

.navbar__brand { display: flex; align-items: center; }

/* ---------- Navbar: navegação entre páginas ---------- */
.navbar__nav {
  display: flex;
  gap: 0.3rem;
  margin: 0 auto;
}

.navbar__link {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.navbar__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.navbar__link.is-active {
  color: #101010;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
}

@media (max-width: 780px) {
  .navbar__inner { flex-wrap: wrap; row-gap: 0.6rem; }
  .navbar__nav { order: 3; width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: radial-gradient(ellipse at 50% 0%, #1a1a1a 0%, var(--bg) 65%);
  overflow: hidden;
}

/* Manchas de luz neon decorativas ao fundo do hero */
.hero__glow {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.hero__glow--yellow { background: var(--yellow); top: -10%; left: -10%; }
.hero__glow--orange { background: var(--orange); bottom: -15%; right: -5%; animation-delay: -2.5s; }
.hero__glow--green { background: var(--green); top: 30%; right: 25%; animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-25px) scale(1.06); }
}

.hero__content { position: relative; z-index: 1; max-width: 720px; }

/* ---------- Logótipo de topo por página ---------- */
/* Staff, Empregos e Studios: PNGs com fundo já recortado (transparente), por
   isso assentam diretamente sobre o hero sem caixa nem moldura. */
.hero__logo {
  display: block;
  margin: 0 auto 1.5rem;
  width: 100%;
  max-width: 320px;
  height: auto;
}

.hero__eyebrow {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ---------- Secções genéricas ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section--alt { background: var(--bg-alt); max-width: 100%; }
.section--alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section__title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Anima secções ao entrarem no viewport (classe adicionada via JS) */
.section, .hero__content { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.section.is-visible, .hero__content.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- O que procuramos (traits) ---------- */
.traits {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.trait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.trait i { font-size: 1.8rem; color: var(--yellow); }
.trait:nth-child(2) i { color: var(--orange); }
.trait:nth-child(3) i { color: var(--green); }
.trait:nth-child(4) i { color: var(--yellow); }
.trait:nth-child(5) i { color: var(--orange); }
.trait:nth-child(6) i { color: var(--green); }

.trait span { font-weight: 600; color: var(--text-soft); }

.trait:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: var(--shadow-green);
}

/* ---------- Vagas (cards) ---------- */
.cards {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-orange);
}

.card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.card__icon { font-size: 2rem; color: var(--orange); margin-bottom: 1rem; }
.card__title { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card__text { color: var(--text-muted); }

/* Vaga aberta — badge injetado pelo empregos.js (GET /api/vagas-emprego). */
.card__badge {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0c1a06;
  background: var(--green);
}

.promo-banner-wrap { width: 100%; }

.promo-banner {
  display: block;
  width: 100%;
  height: auto;
}

.note {
  text-align: center;
  margin-top: 2rem;
  color: var(--green);
  font-weight: 600;
}

/* ---------- Vantagens ---------- */
.perks {
  list-style: none;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.perks li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.perks li i { color: var(--yellow); }
.perks li:hover { transform: translateY(-3px); border-color: var(--yellow); }

/* Chip para comandos em jogo dentro de texto corrido (ex: /evento_inscrever
   <id>) — sem isto o <code> herda o monospace por defeito do browser sem
   fundo nem padding, e comandos longos partem-se a meio da palavra em
   colunas estreitas. */
code {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-size: 0.9em;
  color: var(--yellow);
  white-space: nowrap;
}

/* ---------- Como funciona (passos numerados) ---------- */
.steps {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.step:hover { transform: translateY(-6px); border-color: var(--yellow); box-shadow: var(--shadow-yellow); }

.step__number {
  position: absolute;
  top: -14px;
  left: 1.5rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__icon { font-size: 1.6rem; color: var(--orange); margin: 0.6rem 0 0.9rem; }
.step__title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step__text { color: var(--text-muted); line-height: 1.5; }
.step__text code { white-space: normal; }

/* ---------- Formulário ---------- */
.form { max-width: 720px; margin: 0 auto; }

/* Honeypot: existe no DOM e é "focável" para JS, mas invisível e fora do
   alcance de utilizadores reais (tab-index -1 no HTML trata do teclado). */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.8rem;
  background: var(--bg-card);
}

.form__group legend {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--green);
  padding: 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.field { margin-bottom: 1.2rem; }
.field:last-child { margin-bottom: 0; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.field input[type="text"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; min-height: 90px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.15);
}

.field input:invalid.touched,
.field select:invalid.touched,
.field textarea:invalid.touched {
  border-color: #ff4d4d;
}

.field__hint {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.field__error {
  display: none;
  font-size: 0.85rem;
  color: #ff4d4d;
  margin-top: 0.35rem;
}

.field__error.is-visible { display: block; }

.char-count {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Radios e checkboxes */
.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.radio, .checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  transition: border-color 0.2s ease;
}

.radio:has(input:checked), .checkbox:has(input:checked) {
  border-color: var(--green);
  color: var(--text);
}

.radio input, .checkbox input { accent-color: var(--green); width: 16px; height: 16px; }

.checkbox--consent {
  width: 100%;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.checkbox--consent:last-child { margin-bottom: 0; }
.checkbox--consent input { margin-top: 0.2rem; flex-shrink: 0; }

.field--conditional {
  border-left: 2px solid var(--green);
  padding-left: 1rem;
  margin-left: 0.2rem;
}

.btn--submit {
  width: 100%;
  justify-content: center;
  font-size: 1.15rem;
  padding: 1.1rem;
  margin-top: 0.5rem;
}

.btn--submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.form__status {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  color: #ff4d4d;
}

.form__status[hidden] { display: none; }

/* ---------- Modal de confirmação ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal__box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow-green);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: pop 0.3s ease;
}

@keyframes pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal__icon { font-size: 3rem; color: var(--green); margin-bottom: 1rem; }
.modal__box h3 { margin-bottom: 0.8rem; font-size: 1.3rem; }
.modal__box p { color: var(--text-muted); margin-bottom: 1.5rem; }

.modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal__codigo-comando code {
  display: inline-block;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  color: var(--green);
  user-select: all;
}

/* ---------- FAQ (acordeão) ---------- */
.accordion {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.accordion__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
}

.accordion__header i { color: var(--green); transition: transform 0.25s ease; flex-shrink: 0; }

.accordion__item.is-open .accordion__header i { transform: rotate(180deg); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.3rem;
}

.accordion__item.is-open .accordion__panel {
  padding: 0 1.3rem 1.1rem;
}

.accordion__panel p { color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ---------- Responsivo ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 3.5rem 1.2rem; }
  .field-row { grid-template-columns: 1fr; }
  .navbar__inner { padding: 0.8rem 1.2rem; }
}

/* ---------- Botão "Ao vivo" na barra (nav-live.js) ---------- */
.nav-live { position: relative; }
.nav-live__botao {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 1rem; border-radius: 999px; border: 2px solid transparent;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  color: #0a0a0a; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.navbar .nav-live .nav-live__botao,
.navbar .nav-live .nav-live__botao span { color: #0a0a0a; } /* o `a` da barra herda amarelo: força letra escura */
.nav-live__ponto { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #ff2d2d; animation: nav-live-pulso 1.4s infinite; }
@keyframes nav-live-pulso { 50% { opacity: 0.3; } }
.nav-live__lista {
  position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 230px; z-index: 60;
  display: flex; flex-direction: column; gap: 0.25rem; padding: 0.5rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
}
.nav-live__lista[hidden] { display: none; }
.nav-live__item {
  padding: 0.6rem 0.8rem; border-radius: 10px; color: var(--text); text-decoration: none;
  font-weight: 600; white-space: nowrap;
}
.nav-live__item:hover { background: rgba(255, 255, 255, 0.08); }
@media (max-width: 640px) { .nav-live__nome { display: none; } }
