/* ============ JOGOS — design alinhado com index.html / galeria.html ============ */
:root {
  --gold: #e9b93b;
  --gold-glow: rgba(233, 185, 59, 0.18);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

body {
  background: var(--dark);
  color: #e6ecf9;
}

/* ============ NAVBAR / MENU MOBILE ============ */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 260;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #e6ecf9;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ CABEÇALHO DA PÁGINA (HERO) ============ */
.jo-hero {
  position: relative;
  overflow: hidden;
  padding: 180px 0 90px;
  background: var(--dark);
  text-align: center;
}

.jo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(26, 108, 229, 0.2), transparent),
    radial-gradient(ellipse 60% 80% at 15% 90%, rgba(10, 45, 122, 0.5), transparent),
    radial-gradient(ellipse 40% 40% at 85% 80%, rgba(233, 185, 59, 0.06), transparent);
}

.jo-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.jo-hero .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #06122b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 22px;
  box-shadow: 0 12px 28px rgba(233, 185, 59, 0.25);
}

.jo-hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.jo-hero h1 span { color: var(--gold); }

.jo-hero p {
  color: #8a98b8;
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
}

.jo-epoca-info {
  margin-top: 20px;
  color: #aeb9d4;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.jo-epoca-info strong { color: var(--gold); }

/* ============ SEÇÕES ============ */
.jo-section {
  padding: 70px 0 90px;
}

.jo-section .section-title {
  color: var(--white);
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 12px;
}

.jo-section .section-sub {
  color: #8a98b8;
  margin-bottom: 40px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.7;
}

/* ============ FILTROS ============ */
.jo-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-bottom: 34px;
}

.jo-tools .fgroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 260px;
}

.jo-tools label {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-align: left;
}

.jo-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e6ecf9;
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  min-width: 260px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.25s, background 0.25s;
}

.jo-select:hover { border-color: rgba(233, 185, 59, 0.5); }
.jo-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.jo-select option { background: #0b1f47; color: #e6ecf9; }

.jo-empty {
  color: #8a98b8;
  font-size: 15px;
  padding: 24px 0;
  text-align: center;
  grid-column: 1 / -1;
}

/* ============ GRELHA DE JOGOS (cartões dark) ============ */
.jo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.jo-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 4px solid rgba(233, 185, 59, 0.55);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  animation: joFadeUp 0.5s ease both;
}

.jo-card:hover {
  transform: translateY(-5px);
  border-color: rgba(233, 185, 59, 0.8);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(233, 185, 59, 0.15);
}

@keyframes joFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.jo-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}

.jo-card .jdata {
  font-weight: 800;
  color: var(--white);
  font-size: 13.5px;
}

.jo-card .jornada {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #d19a1f);
  color: #06122b;
  padding: 2px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  margin-right: 8px;
}

.jo-card .horas {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 800;
}

.jo-card .jlocal {
  color: #8a98b8;
  font-size: 13px;
  margin-top: 10px;
}

.jo-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.jo-team {
  font-weight: 700;
  color: var(--white);
  font-size: 15px;
  flex-grow: 1;
}

.jo-team.right { text-align: right; }

.jo-result .jo-score {
  font-size: 21px;
  font-weight: 900;
  color: var(--gold);
  white-space: nowrap;
}

.jo-result .jo-vs {
  font-size: 16px;
  font-weight: 700;
  color: #8a98b8;
}

.jo-status {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
}

.st-jogado   { background: rgba(34, 197, 94, 0.16); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.35); }
.st-agendado { background: rgba(42, 122, 245, 0.16); color: #7db3ff; border: 1px solid rgba(42, 122, 245, 0.35); }
.st-adiado   { background: rgba(251, 191, 36, 0.14); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.35); }

.jo-team.ours::after { content: ' ★'; color: #d97706; }

/* ============ CLASSIFICAÇÃO ============ */
.jo-tables {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 35px;
  align-items: start;
}

@media (max-width: 860px) {
  .jo-tables { grid-template-columns: 1fr; }
}

.jo-table-wrap {
  overflow-x: auto;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

table { width: 100%; border-collapse: collapse; }

th {
  background: linear-gradient(135deg, #1a6ce5, #0a2d7a);
  color: #fff;
  padding: 13px 10px;
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
  color: #e6ecf9;
}

tr:hover td { background: rgba(255, 255, 255, 0.04); }

.tc { text-align: center; }

.pos {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  font-size: 12px;
  color: #a8b8d8;
}

.pos-1 { background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; }
.pos-2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.pos-3 { background: linear-gradient(135deg, #d97706, #92400e); color: #fff; }

.pts { font-weight: 900; color: var(--gold); }

/* ============ MELHORES MARCADORES ============ */
.top-list {
  list-style: none;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.top-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.top-item:last-child { border-bottom: none; }
.top-item:hover { background: rgba(255, 255, 255, 0.04); }

.top-item .rank {
  width: 22px;
  font-weight: 800;
  color: var(--gold);
  text-align: center;
}

.top-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.top-item .tn {
  flex-grow: 1;
  font-weight: 600;
  color: #e6ecf9;
  font-size: 14px;
}

.top-item .tm { font-size: 12px; color: #8a98b8; }
.top-item .tg { font-size: 18px; font-weight: 900; color: var(--gold); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    z-index: 250;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 100px 34px 40px;
    background: rgba(4, 10, 25, 0.96);
    backdrop-filter: blur(18px);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  nav.open { transform: translateX(0); }

  #mainNav a {
    display: block;
    width: 100%;
    margin: 0;
    padding: 13px 0;
    font-size: 19px;
    color: #e6ecf9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  nav.open .nav-social {
    display: flex;
    margin-top: 24px;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
  }

  .jo-hero { padding: 150px 0 70px; }
  .jo-section { padding: 50px 0 70px; }
}

@media (max-width: 600px) {
  .logo-text { display: none; }
}
