/*
Theme Name: aLL GiRls sPoRts Portal
Theme URI: https://allgirlssports.local
Author: aLL GiRls sPoRts
Description: Tema editorial e informativo para o portal aLL GiRls sPoRts.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: ags-portal
*/

:root {
  --ags-forest: #123f14;
  --ags-forest-2: #1e5a24;
  --ags-rose: #8b0912;
  --ags-rose-2: #b61724;
  --ags-ink: #172019;
  --ags-muted: #657268;
  --ags-paper: #f7f4ec;
  --ags-cream: #f1eee5;
  --ags-white: #ffffff;
  --ags-line: #ded8cc;
  --ags-gold: #d3a84f;
  --ags-shadow: 0 18px 50px rgba(18, 63, 20, 0.12);
  --ags-radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ags-ink);
  background: var(--ags-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--ags-forest);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--ags-line);
  background: rgba(247, 244, 236, 0.96);
  backdrop-filter: blur(10px);
}

.site-header__inner,
.site-main,
.site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  min-width: 190px;
}

.site-logo img {
  display: block;
  width: min(360px, 44vw);
  height: auto;
}

.site-menu {
  position: relative;
}

.site-menu summary {
  list-style: none;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu__toggle {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 12px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--ags-line);
  border-radius: var(--ags-radius);
  color: var(--ags-forest);
  background: var(--ags-white);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(23, 32, 25, 0.06);
}

.site-menu__toggle span {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.site-menu__toggle:hover {
  border-color: var(--ags-forest);
}

.site-menu[open] .site-menu__toggle {
  border-color: var(--ags-forest);
  color: var(--ags-white);
  background: var(--ags-forest);
}

.site-nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--ags-line);
  border-radius: var(--ags-radius);
  background: var(--ags-white);
  box-shadow: var(--ags-shadow);
}

.site-menu:not([open]) .site-nav {
  display: none;
}

.site-nav__list {
  display: grid;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--ags-radius);
  color: var(--ags-ink);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: var(--ags-white);
  background: var(--ags-forest);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: center;
  padding: 56px 0 42px;
}

.hero h1,
.page-title {
  margin: 0;
  color: var(--ags-forest);
  font-size: clamp(2.2rem, 5vw, 4.75rem);
  line-height: 0.98;
}

.hero p {
  max-width: 660px;
  color: var(--ags-muted);
  font-size: 1.18rem;
}

.hero__panel {
  border: 1px solid var(--ags-line);
  border-radius: var(--ags-radius);
  background: var(--ags-white);
  box-shadow: var(--ags-shadow);
  overflow: hidden;
}

.hero__panel-header {
  padding: 18px 20px;
  color: var(--ags-white);
  background: var(--ags-forest);
  font-weight: 800;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--ags-forest);
  color: var(--ags-white);
  background: var(--ags-forest);
  font-weight: 800;
  text-decoration: none;
}

.button--secondary {
  color: var(--ags-forest);
  background: transparent;
}

.section {
  padding: 24px 0 34px;
}

.section h2 {
  margin: 0 0 18px;
  color: var(--ags-forest);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.page-content {
  margin-top: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.event-card {
  border: 1px solid var(--ags-line);
  border-radius: var(--ags-radius);
  background: var(--ags-white);
  box-shadow: 0 8px 24px rgba(23, 32, 25, 0.06);
}

.card {
  padding: 20px;
}

.event-list {
  display: grid;
  gap: 24px;
}

.event-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--ags-line);
  border-radius: var(--ags-radius);
  background: var(--ags-white);
  box-shadow: 0 8px 24px rgba(23, 32, 25, 0.06);
}

.event-filters label {
  display: grid;
  gap: 6px;
  min-width: min(260px, 100%);
}

.event-filters span {
  color: var(--ags-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-filters select {
  min-height: 42px;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--ags-line);
  border-radius: var(--ags-radius);
  color: var(--ags-ink);
  background: #fffdfa;
  font: inherit;
  font-weight: 700;
}

.event-filters button,
.event-filters > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 2px solid var(--ags-forest);
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.event-filters button {
  color: var(--ags-white);
  background: var(--ags-forest);
}

.event-filters > a {
  color: var(--ags-forest);
  background: transparent;
}

.events-empty {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--ags-line);
  border-radius: var(--ags-radius);
  color: var(--ags-muted);
  background: var(--ags-white);
  font-weight: 800;
}

.event-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 128px;
  overflow: hidden;
}

.event-day {
  display: grid;
  gap: 12px;
}

.event-day h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ags-forest);
}

.event-day__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: var(--ags-radius);
  color: var(--ags-white);
  background: var(--ags-rose);
  text-align: center;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.event-day__text {
  display: grid;
  gap: 2px;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  line-height: 1.1;
}

.event-day__text span {
  color: var(--ags-muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-sport {
  display: grid;
  place-items: center;
  min-height: 128px;
  color: var(--ags-white);
  background: var(--ags-rose-2);
}

.event-sport svg {
  width: 72px;
  height: 72px;
}

.event-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 22px;
}

.event-body h3 {
  margin: 0 0 12px;
  color: var(--ags-forest);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.18;
}

.event-body h3 a {
  color: inherit;
}

.event-club {
  margin: 0 0 6px;
  color: var(--ags-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.event-club a {
  color: inherit;
}

.event-detail {
  display: grid;
  gap: 22px;
}

.event-detail__header {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.event-detail__header p {
  margin: 0;
  color: var(--ags-muted);
  font-size: 1.05rem;
  font-weight: 800;
}

.event-detail__sport {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ags-forest);
  background: var(--ags-cream);
  font-weight: 900;
  text-decoration: none;
}

.event-detail__sport svg {
  width: 28px;
  height: 28px;
}

.event-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.event-team {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--ags-line);
  border-radius: var(--ags-radius);
  color: var(--ags-ink);
  background: var(--ags-white);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(23, 32, 25, 0.06);
}

.event-team:hover {
  border-color: var(--ags-forest);
  box-shadow: var(--ags-shadow);
}

.event-team strong {
  max-width: 320px;
  color: var(--ags-forest);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.16;
}

.event-club-badge {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border-radius: 50%;
  color: var(--ags-white);
  background: var(--ags-cream);
}

.event-club-badge img {
  display: block;
  width: 84px;
  max-height: 84px;
  object-fit: contain;
}

.event-club-badge span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: var(--ags-forest);
  font-size: 1.35rem;
  font-weight: 900;
}

.event-matchup__versus {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  color: var(--ags-white);
  background: var(--ags-rose);
  font-size: 1.2rem;
  font-weight: 900;
}

.event-detail__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.event-detail__facts div {
  padding: 16px;
  border: 1px solid var(--ags-line);
  border-radius: var(--ags-radius);
  background: var(--ags-white);
}

.event-detail__facts dt {
  margin: 0 0 6px;
  color: var(--ags-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-detail__facts dd {
  margin: 0;
  color: var(--ags-ink);
  font-weight: 800;
}

.event-detail__content {
  box-shadow: none;
}

.event-detail__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.95rem;
}

.event-detail__content th,
.event-detail__content td {
  padding: 12px 14px;
  border: 1px solid var(--ags-line);
  vertical-align: top;
  text-align: left;
}

.event-detail__content th {
  background: #f7f4ec;
  color: var(--ags-ink);
  font-weight: 900;
}

.event-detail__content tr:nth-child(even) td {
  background: #fffdfa;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ags-muted);
  font-size: 0.92rem;
}

.event-meta li {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1eee5;
}

.event-meta a {
  color: var(--ags-forest);
}

.term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.term-list a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--ags-line);
  background: var(--ags-white);
  color: var(--ags-forest);
  font-weight: 800;
  text-decoration: none;
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sport-card {
  display: flex;
  align-items: stretch;
  min-height: 154px;
  border: 1px solid var(--ags-line);
  border-radius: var(--ags-radius);
  background: var(--ags-white);
  color: var(--ags-ink);
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(23, 32, 25, 0.06);
}

.sport-card:hover {
  border-color: var(--ags-forest);
  box-shadow: var(--ags-shadow);
}

.sport-card__icon {
  display: grid;
  place-items: center;
  width: 40%;
  min-width: 126px;
  color: var(--ags-forest);
  background: #f1eee5;
}

.sport-card__icon svg {
  width: 108px;
  height: 108px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.sport-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}

.sport-card h2 {
  margin: 0;
  color: var(--ags-forest);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.sport-card span {
  color: var(--ags-muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.club-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  min-height: 124px;
  border: 1px solid var(--ags-line);
  border-radius: var(--ags-radius);
  background: var(--ags-white);
  color: var(--ags-ink);
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(23, 32, 25, 0.06);
}

.club-card:hover {
  border-color: var(--ags-forest);
  box-shadow: var(--ags-shadow);
}

.club-card__mark {
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--ags-white);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.club-card__mark--initials {
  background: var(--ags-forest);
}

.club-card__mark--logo {
  background: var(--ags-cream);
}

.club-card__mark img {
  display: block;
  width: 64px;
  max-width: 100%;
  max-height: 74px;
  object-fit: contain;
}

.club-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 16px;
}

.club-card h2 {
  margin: 0;
  color: var(--ags-forest);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.15;
}

.club-card__count {
  color: var(--ags-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.club-card__contact {
  display: grid;
  gap: 4px;
  color: var(--ags-muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.club-card__contact strong {
  color: var(--ags-forest);
  font-weight: 900;
}

.club-card__sports {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}

.club-card__sport {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--ags-forest);
  background: var(--ags-cream);
}

.club-card__sport svg {
  width: 26px;
  height: 26px;
}

.club-detail {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--ags-line);
  border-radius: var(--ags-radius);
  background: var(--ags-white);
  box-shadow: var(--ags-shadow);
}

.club-detail__mark {
  display: grid;
  place-items: center;
  min-height: 160px;
  border-radius: var(--ags-radius);
  color: var(--ags-white);
  background: var(--ags-cream);
}

.club-detail__mark img {
  display: block;
  width: min(128px, 80%);
  max-height: 128px;
  object-fit: contain;
}

.club-detail__mark span {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  background: var(--ags-forest);
  font-size: 1.6rem;
  font-weight: 900;
}

.club-detail__body {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.club-detail__body p {
  margin: 0;
  color: var(--ags-muted);
  font-weight: 800;
}

.club-detail__description {
  max-width: 760px;
  color: var(--ags-ink);
}

.club-detail__description p {
  margin: 0;
  color: inherit;
  font-weight: 500;
}

.club-detail__description a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--ags-forest);
  font-size: 0.85rem;
  font-weight: 900;
}

.club-detail__contacts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.club-detail__contacts div {
  display: grid;
  gap: 4px;
}

.club-detail__contacts dt {
  color: var(--ags-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.club-detail__contacts dd {
  margin: 0;
  color: var(--ags-ink);
  font-weight: 700;
}

.club-detail__contacts a {
  color: var(--ags-forest);
}

.map-placeholder {
  min-height: 360px;
  border: 1px solid var(--ags-line);
  border-radius: var(--ags-radius);
  background:
    linear-gradient(rgba(18, 63, 20, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 63, 20, 0.08) 1px, transparent 1px),
    #fffdfa;
  background-size: 44px 44px;
  position: relative;
  overflow: hidden;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border: 3px solid var(--ags-white);
  border-radius: 50%;
  background: var(--ags-rose);
  box-shadow: 0 6px 18px rgba(139, 9, 18, 0.35);
}

.site-footer {
  margin-top: 48px;
  padding: 28px 0;
  color: var(--ags-white);
  background: var(--ags-forest);
}

.site-footer a {
  color: var(--ags-white);
}

@media (max-width: 860px) {
  .site-header__inner {
    align-items: center;
    flex-direction: row;
    padding: 14px 0;
  }

  .site-logo img {
    width: min(300px, 68vw);
  }

  .site-nav {
    right: 0;
  }

  .hero,
  .grid,
  .sports-grid,
  .clubs-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 112px;
  }

  .event-sport {
    min-height: 112px;
  }

  .event-sport svg {
    width: 57px;
    height: 57px;
  }

  .event-body {
    padding: 14px;
  }

  .event-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .event-filters label,
  .event-filters button,
  .event-filters > a {
    width: 100%;
  }

  .event-matchup,
  .event-detail__facts {
    grid-template-columns: 1fr;
  }

  .event-matchup__versus {
    justify-self: center;
  }

  .club-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .club-detail {
    grid-template-columns: 1fr;
  }
}
