/* GTA Sin Filtro — tema gaming oscuro / neón */
:root {
  --bg: #070a08;
  --bg2: #0d120f;
  --panel: #0f1612;
  --border: #1e2a22;
  --text: #e8f5ef;
  --muted: #8aa698;
  --neon: #39ff14;
  --neon2: #00ff88;
  --danger: #ff4d6d;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --font: "Rajdhani", system-ui, sans-serif;
  --font-display: "Orbitron", var(--font);
}

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

html {
  scroll-behavior: smooth;
}

body.site {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.05rem;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(57, 255, 20, 0.08), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(0, 255, 136, 0.06), transparent 50%), var(--bg);
  line-height: 1.5;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: var(--neon2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

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

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}
.logo__glow {
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(57, 255, 20, 0.45);
}
.logo__sub {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav a {
  color: var(--text);
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover {
  background: rgba(57, 255, 20, 0.08);
  text-decoration: none;
  color: var(--neon);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav {
    position: absolute;
    right: 4vw;
    top: 56px;
    flex-direction: column;
    align-items: stretch;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    min-width: 200px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 4rem;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  color: var(--muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 1rem;
  line-height: 1.1;
}
.text-neon {
  color: var(--neon);
  text-shadow: 0 0 24px rgba(57, 255, 20, 0.35);
}
.hero__lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 1.75rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.04), transparent 40%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 80px);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: linear-gradient(135deg, var(--neon2), #12c45a);
  color: #031105;
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.25);
}
.btn--primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
  text-decoration: none;
}
.btn--glow {
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.35);
}
.btn--block {
  width: 100%;
}

/* Sections */
.section {
  padding: 3rem 0;
}
.section--alt {
  background: linear-gradient(180deg, rgba(15, 22, 18, 0.9), rgba(7, 10, 8, 0.4));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--tight {
  padding-top: 2rem;
}
.section__head {
  margin-bottom: 1.5rem;
}
.section__title {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}
.section__sub {
  margin: 0;
  color: var(--muted);
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.35rem;
}
.page-sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Grid cards */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.mission-card {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(57, 255, 20, 0.35);
}
.mission-card__link {
  color: inherit;
  display: block;
}
.mission-card__link:hover {
  text-decoration: none;
}
.mission-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #122018, #0a0f0c);
  background-size: cover;
  background-position: center;
}
.mission-card__media--empty {
  background: repeating-linear-gradient(
      45deg,
      rgba(57, 255, 20, 0.05),
      rgba(57, 255, 20, 0.05) 12px,
      rgba(0, 0, 0, 0.15) 12px,
      rgba(0, 0, 0, 0.15) 24px
    ),
    linear-gradient(145deg, #122018, #0a0f0c);
}
.mission-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.mission-card:hover .mission-card__shine {
  opacity: 1;
}
.mission-card__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--neon);
}
.mission-card__body {
  padding: 0.85rem 1rem 1rem;
}
.mission-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.mission-card__meta {
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  animation: fadeUp 0.55s ease both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-state {
  color: var(--muted);
  padding: 2rem 0;
}

.rank-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 560px;
}
.rank-mini li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.rank-mini__n {
  color: var(--neon);
  font-weight: 700;
  font-family: var(--font-display);
}
.rank-mini__dl {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Filters */
.filters {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 22, 18, 0.6);
}
.filters__row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.field input,
.field select,
.field textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  color: var(--text);
  font: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(57, 255, 20, 0.45);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.12);
}
.filters__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Mission detail */
.mission-layout {
  max-width: 900px;
}
.mission-detail__head {
  margin-bottom: 1rem;
}
.mission-detail__badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--neon);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.mission-detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 0.5rem;
}
.mission-detail__stats {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.video-shell {
  margin: 1.25rem 0 1.5rem;
}
.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-frame__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: radial-gradient(circle at center, #122018, #050705);
}
.video-frame__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mission-body.rte {
  color: #c6d9ce;
  margin-bottom: 1.5rem;
}

.mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.badge-muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.is-open {
  display: flex;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.35s ease both;
}
.modal__title {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}
.modal__text {
  color: var(--muted);
  margin: 0 0 1rem;
}
.modal__social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal__close:hover {
  color: var(--text);
}

.modal__hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.modal__field {
  margin-bottom: 0.75rem;
}

.modal__err {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.hidden {
  display: none !important;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data-table th,
.data-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.data-table th {
  background: rgba(15, 22, 18, 0.9);
  color: var(--muted);
  font-weight: 600;
}
.data-table tr:hover td {
  background: rgba(57, 255, 20, 0.04);
}
.data-table a {
  color: var(--neon2);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  background: rgba(5, 8, 6, 0.95);
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer__muted {
  color: var(--muted);
  margin: 0.35rem 0 0;
  max-width: 420px;
}
.footer__links {
  display: flex;
  gap: 1rem;
}
.footer__bottom {
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.nowrap {
  white-space: nowrap;
}
