/* ────────────── IMPORTS ────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background-color:#fff;
  color: #222;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ────────────── HEADER ────────────── */
header {
  background-color: #111;
  color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: relative;
  z-index: 1000;
  border-bottom: 2px solid #333;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-area img {
  width: 55px;
}

.logo-area h1 {
  color: #FFD503;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

/* ────────────── BOTÃO SÓCIO TORCEDOR ────────────── */
.btn-socio {
  display: inline-block;
  background-color: #FFD503;
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-socio:hover {
  background-color: #e6c000;
  transform: scale(1.05);
}

/* ────────────── NAV ────────────── */
header nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

header nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0.6rem;
  transition: color 0.2s;
}

header nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #FFD503;
  transition: width 0.3s;
}

header nav a:hover {
  color: #FFD503;
}

header nav a:hover::after {
  width: 100%;
}

/* ────────────── HERO IMAGE ────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-text {
  position: absolute;
  bottom: 20%;
  left: 8%;
  color: #fff;
}

.hero-text h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.2rem;
}


/* ===== Grid de Produtos ===== */
main {
  padding-bottom: 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

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

/* ===== Card do Produto ===== */
.product {
    background-color: #111;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #222;
}

.product img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product h3 {
    font-size: 20px;
    color: #FFD503;
    margin-bottom: 8px;
}

.product p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 10px;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

/* ===== Hover no Card ===== */
.product:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 213, 3, 0.4);
    border-color: #FFD503;
}

footer {
  border-top: 4px solid #FFD503;
  background-color: #000;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  margin-top: auto;
  width: 100%;
}

footer p {
  font-size: 0.95rem;
}

.redes {
  padding: 1rem 0;
  text-align: center;
}

.redes a img {
  width: 32px;
  height: 32px;
  margin: 0 0.4rem;
  transition: transform 0.2s;
}

.redes a img:hover {
  transform: scale(1.15);
}

.contato {
  width: 100%;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  color: #fff;
}

.contato p {
  text-align: center;
  font-size: 0.85rem;
  max-width: 280px;
}

.contato .titulo {
  color: #FFD503;
  font-weight: 700;
  font-size: 0.95rem;
}

.direitos p {
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: #aaa;
  border-top: 1px solid #222;
}

/* ── media queries ── */
@media (max-width: 768px) {
  main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .contato {
    gap: 1.5rem;
    padding: 1.2rem 0.75rem;
  }

  .contato p {
    max-width: 100%;
  }

  .redes a img {
    width: 28px;
    height: 28px;
    margin: 0 0.3rem;
  }
}

@media (max-width: 480px) {
  .contato {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}


/* ────────────── CAMPO DE FUTEBOL ────────────── */
.campo-wrapper {
    width: 94vw;
    max-width: 1000px;
    margin: 2.5rem auto 3rem;
    padding: 60px 20px 20px; /* espaço extra no topo para tooltips */
}

.campo {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    border: 3px solid rgba(255,255,255,0.85);
    border-radius: 6px;
    overflow: visible;
    background-color: #2d7a32;
    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(0,0,0,0.07) 0px,
            rgba(0,0,0,0.07) 55px,
            transparent 55px,
            transparent 110px
        );
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.linha-central {
    position: absolute;
    top: 0; left: 50%;
    width: 0; height: 100%;
    border-left: 2px solid rgba(255,255,255,0.8);
}

.circulo-central {
    position: absolute;
    top: 50%; left: 50%;
    width: 18%; height: 32%;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.circulo-central::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 7px; height: 7px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.area-gol {
    position: absolute;
    width: 13%; height: 46%;
    border: 2px solid rgba(255,255,255,0.8);
    top: 50%;
    transform: translateY(-50%);
}
.area-gol.esquerda { left: 0; border-left: none; }
.area-gol.direita  { right: 0; border-right: none; }

.pequena-area {
    position: absolute;
    width: 5%; height: 24%;
    border: 2px solid rgba(255,255,255,0.8);
    top: 50%;
    transform: translateY(-50%);
}
.pequena-area.esquerda { left: 0; border-left: none; }
.pequena-area.direita  { right: 0; border-right: none; }


/* ────────────── JOGADORAS NO CAMPO ────────────── */
.jogadora {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

/* avatar com foto */
.jogadora .avatar {
    position: relative;
    width: 42px;
    height: 42px;
}

.jogadora .avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid #FFD503;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    transition: transform 0.2s, border-color 0.2s;
    display: block;
}

.jogadora .avatar .num {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #111;
    color: #FFD503;
    font-size: 0.55rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #FFD503;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.jogadora .nome {
    font-size: 0.55rem;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 4px #000;
    margin-top: 4px;
    white-space: nowrap;
    background: rgba(0,0,0,0.5);
    padding: 1px 5px;
    border-radius: 3px;
}

.jogadora:hover .avatar img {
    transform: scale(1.15);
    border-color: #fff;
}

/* tooltip */
.card-stats {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    border: 2px solid #FFD503;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 140px;
    text-align: center;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    box-shadow: 0 6px 24px rgba(0,0,0,0.8);
    white-space: nowrap;
}

.card-stats::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #FFD503;
}

.card-stats img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 2px solid #FFD503;
    margin-bottom: 5px;
}

.card-stats strong {
    color: #FFD503;
    font-size: 0.78rem;
    display: block;
}

.card-stats span {
    color: #ccc;
    font-size: 0.65rem;
    display: block;
}

.jogadora:hover .card-stats {
    display: flex;
}


/* ────────────── TÍTULOS ────────────── */
.titulo-icone {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

.titulo-anos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.titulo-anos span {
    background-color: #333;
    color: #FFD503;
    border: 1px solid #FFD503;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ────────────── LOJA ────────────── */
.price {
    font-size: 1rem;
    font-weight: 700;
    color: #FFD503;
    margin-bottom: 10px;
}

.btn-loja {
    display: inline-block;
    background-color: #FFD503;
    color: #111;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-loja:hover {
    background-color: #e6c000;
    transform: scale(1.05);
}

/* ────────────── LOJA ────────────── */
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  max-width: 1200px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}

.product {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 0.75rem;
  flex: 1 1 200px;
  max-width: 240px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.product:hover {
  transform: translateY(-4px);
  border-color: #FFD503;
}

.product img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 0.5rem;
  background-color: #fff;
  padding: 0.5rem;
}

.product h3 {
  color: #FFD503;
  font-size: 0.95rem;
  text-align: center;
  margin: 0;
}

.product p {
  color: #ccc;
  font-size: 0.82rem;
  text-align: center;
  margin: 0;
}

.product .price {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.btn-loja {
  display: inline-block;
  background-color: #FFD503;
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 0.4rem;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-loja:hover {
  background-color: #e6c000;
  transform: scale(1.05);
}

/* ────────────── JOGADORAS PAGE ────────────── */
.jogadoras-page {
  background-color: #0d0d0d;
  color: #fff;
}

.jogadoras-page main h2 {
  color: #FFD503;
  font-size: 1.3rem;
  margin: 2rem auto 0.8rem;
  max-width: 1100px;
  padding: 0 1rem;
  text-align: center;
}
.players {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  max-width: 1100px;
  margin: 1.2rem auto 2.5rem;
  padding: 0 1rem;
}

.player-card {
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  width: 170px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.player-card:hover {
  transform: translateY(-6px);
  border-color: #FFD503;
  box-shadow: 0 8px 24px rgba(255, 213, 3, 0.25);
}

.player-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.player-card .card-info {
  padding: 0.7rem 0.8rem 0.9rem;
  width: 100%;
  text-align: center;
}

.player-card h3 {
  color: #FFD503;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.player-card .badge {
  display: inline-block;
  background-color: #222;
  color: #aaa;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid #333;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ────────────── LOJA TÍTULOS ────────────── */
.loja-page main h2 {
  text-align: center;
  color: #FFD503;
  font-size: 1.3rem;
  margin: 2rem auto 0.8rem;
}

/* ────────────── CARROSSEL TÍTULOS ────────────── */
.carousel-img {
    max-height: 520px;
    object-fit: cover;
    object-position: center top;
}

/* ────────────── TÍTULOS PAGE ────────────── */
.titulos-page {
    background-color: #000;
    color: #fff;
}

.titulos-page main h2 {
    color: #FFD503;
    text-align: center;
    font-size: 1.3rem;
    margin: 2rem auto 0.8rem;
}

.titulos-page .product {
    background-color: #fff;
    border-color: #ddd;
    color: #111;
}

.titulos-page .product h3 {
    color: #111;
}

.titulos-page .product p {
    color: #444;
}

.titulos-page .product .price {
    color: #111;
    font-weight: 700;
}

.titulos-page .titulo-anos span {
    background-color: #111;
    color: #FFD503;
    border-color: #FFD503;
}

.titulos-page .product:hover {
    border-color: #FFD503;
    box-shadow: 0 8px 24px rgba(255, 213, 3, 0.3);
}

/* ────────────── LOJA PAGE - TEMA PRETO/AMARELO ────────────── */
.loja-page {
    background-color: #000;
    color: #fff;
}

.loja-page .product {
    background-color: #fff;
    border-color: #ddd;
    color: #111;
}

.loja-page .product h3 {
    color: #111;
}

.loja-page .product p {
    color: #444;
}

.loja-page .product .price {
    color: #111;
    font-weight: 700;
}

.loja-page .product img {
    background-color: #f5f5f5;
}

.loja-page .product:hover {
    border-color: #FFD503;
    box-shadow: 0 8px 24px rgba(255, 213, 3, 0.3);
}


/* ========================
   PAINEL DE BUSCA
======================== */
.painel-busca {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-left: 5px solid #FFD503;
}

.busca-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.search-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #FFD503;
  box-shadow: 0 0 8px rgba(255, 213, 3, 0.2);
}

.filtros-posicoes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filtro-btn {
  background-color: #fff;
  color: #333;
  border: 2px solid #d0d0d0;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Poppins", sans-serif;
}

.filtro-btn:hover {
  border-color: #FFD503;
  color: #FFD503;
}

.filtro-btn.ativo {
  background-color: #FFD503;
  color: #000;
  border-color: #FFD503;
  box-shadow: 0 4px 12px rgba(255, 213, 3, 0.3);
}

/* ========================
   MODAL JOGADORA
======================== */
.modal-jogadora {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-jogadora.show {
  opacity: 1;
}

.modal-jogadora-content {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #333;
}

.modal-jogadora-content h3 {
  color: #111;
  font-size: 24px;
  margin-bottom: 15px;
}

.modal-jogadora-content p {
  color: #666;
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.modal-jogadora-content p:last-child {
  margin-bottom: 0;
}

.info-extra {
  background-color: #fef5e7;
  border-left: 4px solid #FFD503;
  padding: 12px;
  margin-top: 15px;
  border-radius: 4px;
  color: #555;
  font-style: italic;
}

/* ========================
   RESPONSIVIDADE
======================== */
@media (max-width: 768px) {
  .painel-busca {
    padding: 18px;
    margin: 20px 0;
  }

  .search-input {
    padding: 12px 15px;
    font-size: 15px;
  }

  .filtros-posicoes {
    gap: 8px;
  }

  .filtro-btn {
    padding: 9px 14px;
    font-size: 13px;
  }

  .modal-jogadora-content {
    padding: 25px;
  }

  .modal-jogadora-content h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .painel-busca {
    padding: 15px;
  }

  .search-input {
    font-size: 16px; /* Previne zoom */
  }

  .filtros-posicoes {
    flex-direction: column;
  }

  .filtro-btn {
    width: 100%;
    padding: 10px 12px;
  }

  .modal-jogadora-content {
    width: 95%;
    padding: 20px;
  }
}
