/*
============================================
  ARENA DOURADA - CIRCUITO OESTE BEACH TENNIS
  CSS COMPLETO
============================================
*/

/* ====== RESET GLOBAL ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f4ef;
  color: #222;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}


/* ====== IDENTIDADE VISUAL (Corteva Azul) ====== */
:root{
  --azul-principal: #0A5EB7;   /* azul Corteva (aprox.) */
  --azul-hover:     #1C78D0;
  --azul-escuro:    #083E7A;
  --azul-claro:     #EAF2FB;
  --azul-rgb: 10, 94, 183;

  /* Amarelo (secundário) */
  --amarelo:        var(--azul-principal);
  --amarelo-hover:  var(--azul-hover);
}
/* ====== HEADER ====== */
header {
  background: #fffdf8;
  color: #2a2927;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo img {
  height: 48px;
}

nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  font-size: 0.85rem;
  text-transform: uppercase;
}

nav a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

nav a:hover {
  background: rgba(var(--azul-rgb), 0.14);
  border-color: rgba(0,0,0,0.08);
}

nav a.ativo {
  background: var(--azul-principal);
  border-color: #fff;
  font-weight: 700;
  color: #fff;
}

.menu-mobile {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ====== HERO BANNER ====== */
.hero-banner {
  width: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  max-height: 720px;
  min-height: 420px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: center;
}

.hero-text {
  color: #fff;
  max-width: 600px;
}

.hero-text h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 16px;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(225,225,225,1);
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(225,225,225,1);
  opacity: 0.95;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--azul-principal);
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: all 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  background: var(--azul-hover);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.95);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: all 0.2s;
  z-index: 10;
}

.hero-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
}

.hero-dot.active {
  width: 28px;
  background: var(--azul-principal);
}

/* ====== SEÇÕES GERAIS ====== */
main {
  padding: 0;
}

section {
  padding: 48px 0;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.section-subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 32px;
}

/* ====== INSCRIÇÃO ====== */
.inscricao-section {
  background: linear-gradient(135deg, var(--azul-claro) 0%, #fff 100%);
}

.etapa-inscricao {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.etapa-inscricao label {
  font-weight: 600;
}

.etapa-inscricao select {
  padding: 12px 20px;
  border-radius: 10px;
  border: 2px solid var(--azul-principal);
  font-size: 1rem;
  background: #fff;
  min-width: 300px;
  cursor: pointer;
}

.inscricao-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.inscricao-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 2px solid transparent;
  transition: all 0.3s;
}

.inscricao-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.inscricao-card.destaque {
  border-color: var(--azul-principal);
  position: relative;
}

.inscricao-card.destaque::before {
  content: "POPULAR";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amarelo);
  color: #000;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.categoria-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.categoria-tag.masc { background: #e3f2fd; color: #1565c0; }
.categoria-tag.fem { background: #fce4ec; color: #c2185b; }
.categoria-tag.misto { background: #f3e5f5; color: #7b1fa2; }

.inscricao-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.preco {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.preco small {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}

.beneficios {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.beneficios li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}

.btn-inscrever {
  width: 100%;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  background: var(--azul-principal);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-inscrever:hover {
  background: var(--azul-hover);
  transform: scale(1.02);
}

/* ====== MODAL ====== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: #666;
  margin-bottom: 24px;
}

.form-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.form-section h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #333;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.modal-content input:focus,
.modal-content select:focus {
  outline: none;
  border-color: var(--azul-principal);
}

.btn-enviar {
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  border: none;
  background: var(--azul-principal);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
}

.form-obs {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  margin-top: 12px;
}

/* ====== JOGOS AO VIVO ====== */
#jogos-ao-vivo {
  background: #1a1a1a;
  color: #fff;
}

#jogos-ao-vivo h2 {
  color: #fff;
}

#jogos-ao-vivo .section-subtitle {
  color: #aaa;
}

.filtros-jogos {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filtros-jogos select {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: #2a2a2a;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: #aaa;
}

.live-indicator {
  width: 10px;
  height: 10px;
  background: #e53935;
  border-radius: 50%;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229,57,53,0.6); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(229,57,53,0); }
}

.bracket-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.bracket-phase {
  background: #242424;
  border-radius: 16px;
  padding: 24px;
}

.bracket-phase.final {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 2px solid var(--amarelo);
}

.phase-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--azul-principal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.match-card {
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  border-left: 4px solid #444;
}

.match-card.ao-vivo {
  border-left-color: #e53935;
  animation: glow-live 2s infinite;
}

@keyframes glow-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,0.3); }
  50% { box-shadow: 0 0 20px 0 rgba(229,57,53,0.2); }
}

.match-card.finalizado {
  border-left-color: #4caf50;
}

.match-card.final {
  border-left-color: var(--azul-principal);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #333;
}

.live-badge {
  color: #e53935;
  font-weight: 700;
  font-size: 0.8rem;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.status-badge.finalizado {
  background: #4caf50;
  color: #fff;
}

.status-badge.agendado {
  background: #555;
  color: #fff;
}

.quadra {
  font-size: 0.8rem;
  color: #888;
}

.match-teams {
  padding: 16px;
}

.team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #3a3a3a;
}

.team:last-child {
  border-bottom: none;
}

.team.winner .team-name {
  font-weight: 700;
  color: #4caf50;
}

.team-name {
  font-size: 0.95rem;
}

.scores {
  display: flex;
  gap: 8px;
}

.set {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3a3a3a;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.set.current {
  background: var(--azul-principal);
  color: #000;
}

.match-footer {
  padding: 12px 16px;
  background: #252525;
  text-align: center;
}

.game-status {
  font-size: 0.85rem;
  color: #888;
}

/* ====== AGENDA ====== */
#agenda {
  background: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

.etapa-card {
  position: relative;
  overflow: hidden;
}

.etapa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.etapa-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
}

.etapa-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.etapa-status.aberta {
  background: #e8f5e9;
  color: #2e7d32;
}

.etapa-status.em-breve {
  background: #e3f2fd;
  color: #1565c0;
}

.etapa-status.final {
  background: #fff3e0;
  color: #e65100;
}

.etapa-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.etapa-data,
.etapa-local {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 6px;
}

.btn-etapa {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  background: var(--azul-principal);
  color: #000;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-etapa:hover {
  background: var(--azul-hover);
}

/* ====== RANKING ====== */
#ranking {
  background: #f6f4ef;
}

#ranking .card {
  padding: 0;
  overflow: hidden;
}

.genre-tabs {
  display: flex;
  padding: 16px;
  gap: 8px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.genre-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.genre-tab:hover {
  background: #f0f0f0;
}

.genre-tab.ativo-genero {
  background: var(--azul-principal);
  color: #000;
}

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

.ranking-table thead {
  background: var(--azul-principal);
}

.ranking-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.ranking-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.ranking-table tbody tr:hover {
  background: #fafafa;
}

.col-num {
  text-align: center;
  font-weight: 600;
}

/* ====== AFILIAÇÃO ====== */
#afiliacao {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #fff;
}

#afiliacao h2 {
  color: #fff;
}

#afiliacao .section-subtitle {
  color: #aaa;
}

.afiliacao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.afiliacao-info h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--azul-principal);
}

.beneficios-lista {
  list-style: none;
}

.beneficios-lista li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.beneficio-icon {
  font-size: 1.5rem;
  width: 40px;
  flex-shrink: 0;
}

.beneficios-lista strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.beneficios-lista p {
  font-size: 0.9rem;
  color: #aaa;
}

.afiliacao-preco {
  margin-top: 32px;
  padding: 24px;
  background: rgba(247,201,72,0.1);
  border-radius: 16px;
  text-align: center;
  border: 2px solid var(--azul-principal);
}

.afiliacao-preco .valor {
  font-size: 3rem;
  font-weight: 800;
  color: var(--azul-principal);
}

.afiliacao-preco .periodo {
  font-size: 1.2rem;
  color: #888;
}

.afiliacao-form {
  background: #fff;
  color: #222;
}

.afiliacao-form h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.afiliacao-form input,
.afiliacao-form select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 12px;
}

.afiliacao-form input:focus,
.afiliacao-form select:focus {
  outline: none;
  border-color: var(--azul-principal);
}

.btn-afiliar {
  width: 100%;
  padding: 16px;
  border: none;
  background: var(--azul-principal);
  color: #000;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-afiliar:hover {
  background: var(--azul-hover);
}

/* ====== PARCEIROS ====== */
.partners-block {
  padding: 60px 0;
  text-align: center;
  background: #fff;
}

.partners-block h2 {
  margin-bottom: 40px;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.partner-logos img {
  height: 80px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: all 0.3s;
}

.partner-logos img:hover {
  filter: grayscale(0%);
  transform: scale(1.08);
}

/* ====== FOOTER ====== */
footer {
  background: #111;
  color: #fff;
  padding: 32px 16px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  height: 40px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #aaa;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--azul-principal);
}

.footer-social {
  display: flex;
  gap: 16px;
  font-size: 1.5rem;
}

.footer-social a {
  transition: transform 0.2s;
}

.footer-social a:hover {
  transform: scale(1.2);
}

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

@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .menu-mobile {
    display: block;
  }

  .hero-slider {
    height: 60vh;
    min-height: 350px;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-text {
    text-align: center;
    padding: 0 20px;
  }

  .hero-layer {
    justify-content: center;
  }

  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }

  .inscricao-cards {
    grid-template-columns: 1fr;
  }

  .matches-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .partner-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ====== MENU MOBILE EXPANDIDO ====== */
nav.mobile-open ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

nav.mobile-open ul li {
  width: 100%;
}

nav.mobile-open ul a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
}


/* ====== LGPD / CONSENTIMENTO ====== */
.lgpd-consent {
  margin: 14px 0 6px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 201, 72, 0.35);
  border-radius: 12px;
  background: rgba(247, 201, 72, 0.08);
}

.lgpd-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.35;
}

.lgpd-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.lgpd-label a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lgpd-label a:hover {
  color: var(--azul-principal);
}



/* ============================================
   TROFÉU — 1ª ETAPA
============================================ */
.trofeu-section {
  padding: 60px 0;
  background: #ffffff;
}

.trofeu-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.trofeu-text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.trofeu-list {
  margin-top: 14px;
  padding-left: 18px;
  opacity: 0.95;
}

.trofeu-list li {
  margin: 6px 0;
}

.trofeu-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.trofeu-media img {
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  background: #fff;
}

@media (max-width: 900px) {
  .trofeu-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trofeu-list {
    text-align: left;
    display: inline-block;
  }
}

/* LOGOS NO HEADER */
.logo-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-main,
.logo-corteva {
  height: 48px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-main,
  .logo-corteva {
    height: 38px;
  }

  .logo-group {
    gap: 14px;
  }
}
