/* ============================================
   RESET E VARIÁVEIS
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --vermelho: #e30613;
  --preto: #0b0b0f;
  --cinza: #1a1a24;
  --branco: #f5f5f5;
  --vidro: rgba(255, 255, 255, 0.12);
  --borda: rgba(255, 255, 255, 0.25);
}

/* ============================================
   FUNDO
   ============================================ */
body {
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  color: #f5f5f5;
  overflow-x: hidden;

  background:
    radial-gradient(400px 300px at 50% 25%, rgba(194, 8, 8, 0.55), transparent 70%),
    radial-gradient(700px 500px at 70% 10%, rgba(0, 0, 0, 0.636), transparent 70%),
    radial-gradient(900px 600px at 20% 40%, rgba(206, 104, 104, 0.484), transparent 75%),
    radial-gradient(1000px 700px at 50% 60%, rgba(255, 0, 0, 0.874), transparent 70%),
    linear-gradient(180deg, rgb(15, 10, 10), rgb(8, 8, 10));
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: relative;
  text-align: center;
  padding: 20px 20px 36px;
  background:
    linear-gradient(180deg, rgba(227,6,19,0.25), rgba(0,0,0,0)),
    radial-gradient(600px 200px at 50% 0%, rgba(255,255,255,.15), transparent 70%);
  border-bottom: 1px solid var(--borda);
  overflow: hidden;
}

.header img {
  width: 70%;
  max-width: 800px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  margin: 20px auto 12px;
  display: block;
  margin-top: -2%;
  margin-bottom: -2%;
}

.header h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 3px;
  color: var(--branco);
  text-shadow: 0 10px 30px rgba(227, 6, 19, 0.45);
  z-index: 1;
  position: relative;
  margin-top: -4%;
}

.header .slogan {
  margin-top: 8px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* ============================================
   MENU HAMBÚRGUER - VERSÃO PARA TODAS AS TELAS
   ============================================ */

/* Botão hambúrguer - visível em todos os tamanhos */
.menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 28px;
  background: linear-gradient(135deg, var(--vermelho), #ff4d5a);
  color: white;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 10px 25px rgba(227,6,19,.5);
  transition: .3s ease;
  border: none;
}

.menu-toggle:hover {
  transform: scale(1.05);
}

/* Menu lateral - padrão para TODOS os tamanhos */
.menu-lateral {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  transition: right 0.4s ease;
  z-index: 1000;
  border-left: 2px solid var(--vermelho);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

/* Menu quando ativo (visível) */
.menu-lateral.ativo {
  right: 0;
}

/* Links do menu */
.menu-lateral a {
  text-decoration: none;
  color: white;
  padding: 16px 28px;
  font-size: 1.2rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-left: 3px solid transparent;
  font-family: "Poppins", sans-serif;
}

.menu-lateral a:hover {
  background: rgba(227, 6, 19, 0.3);
  border-left-color: var(--vermelho);
  padding-left: 35px;
}

/* Overlay de escurecimento */
.overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 999;
}

.overlay-menu.ativo {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   INTRO
   ============================================ */
.intro {
  max-width: 1200px;
  margin: 60px auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  border: 1px solid var(--borda);
  border-radius: 28px;
  box-shadow: 0 40px 80px rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
}

.intro h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.3rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.intro p {
  opacity: .95;
  line-height: 1.8;
}

.intro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--borda);
}

/* ============================================
   CARDS (TÍTULOS)
   ============================================ */
.titulos {
  max-width: 1200px;
  margin: 30px auto 80px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  border: 1px solid var(--borda);
  border-radius: 26px;
  padding: 26px;
  backdrop-filter: blur(14px);
  box-shadow: 0 25px 50px rgba(0,0,0,.45);
  transition: .35s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease backwards;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 100px at 20% 0%, rgba(255,255,255,.25), transparent 70%);
  opacity: .6;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 40px 90px rgba(0,0,0,.6);
}

.card h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   PRÓXIMOS JOGOS
   ============================================ */
.jogos-container {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card-jogo {
  background: linear-gradient(135deg, rgba(227,6,19,0.2), rgba(0,0,0,0.3));
  border: 1px solid var(--borda);
  border-radius: 20px;
  padding: 20px;
  transition: 0.3s ease;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease backwards;
}

.card-jogo:hover {
  transform: translateY(-5px);
  border-color: var(--vermelho);
  box-shadow: 0 15px 35px rgba(227,6,19,0.3);
}

.jogo-adversario {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
}

.jogo-info {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.jogo-local, .jogo-competicao {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 5px;
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] body {
  background: linear-gradient(180deg, #0a0a0f, #050507);
}

[data-theme="dark"] .card,
[data-theme="dark"] .intro,
[data-theme="dark"] .card-jogo {
  background: rgba(10,10,15,0.85);
  border-color: rgba(227,6,19,0.3);
}

.theme-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vermelho), #ff4d5a);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(.98);
  transition: .8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    padding-top: 80px;
  }
  
  .header img {
    height: 160px;
    max-width: 100%;
  }
  
  .titulos {
    gap: 16px;
    padding: 0 16px;
  }
  
  .card {
    padding: 20px;
  }
  
  .jogos-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    bottom: 15px;
    left: 15px;
  }
}

/* ============================================
   LAZY LOADING
   ============================================ */
img[data-src] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded {
  opacity: 1;
}

img:not([data-src]) {
  opacity: 1;
}
.menu-lateral a.ativo {
  background: var(--vermelho);
  border-left-color: var(--vermelho);
}