/* =========================================================
   Philly Pokémon League — shared site stylesheet
   Palette: black / white / grey / gold (matches existing brand)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

:root {
  --black: #1e1a1a;
  --near-black: #262121;
  --panel: #26212199;
  --grey-line: #a2834e;
  --grey-text: #d8d8d8;
  --white: #ffffff;
  --gold: #f7b955;
  --gold-hover: #a2834e;
  --gold-soft: rgba(162, 131, 78, 0.14);
  --gold-soft-strong: rgba(162, 131, 78, 0.28);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 { font-weight: 700; letter-spacing: 0.01em; }
h2 { font-weight: 600; color: var(--gold); }
h3 { font-weight: 600; }

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Nav ---------------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--grey-line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  white-space: nowrap;
}
.brand .mark { width: 32px; height: 32px; flex: none; object-fit: contain; }
.brand:hover { text-decoration: none; }

nav.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  justify-content: flex-end;
}
nav.primary a {
  color: var(--grey-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
nav.primary a:hover { color: var(--white); text-decoration: none; background: var(--gold-soft); }
nav.primary a.active { color: var(--gold); background: var(--gold-soft); }

#nav-toggle { display: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--white); display: block; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--grey-line);
  background:
    radial-gradient(ellipse at top, var(--gold-soft) 0%, transparent 60%);
}
.hero .eyebrow {
  font-family: "Lato", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.hero h1 { font-size: clamp(28px, 4.5vw, 42px); }
.hero .dek { color: var(--grey-text); max-width: 68ch; font-size: 17px; margin-top: 10px; }

.hero-emblem-hero { padding: 48px 0 52px; text-align: center; }
.hero-inner-centered { display: flex; flex-direction: column; align-items: center; }
.hero-emblem-hero .eyebrow { text-align: center; }
.hero-emblem-hero .dek { margin-left: auto; margin-right: auto; text-align: center; }

.emblem-seal {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.emblem-seal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft-strong) 0%, transparent 72%);
}
.hero-emblem { width: 220px; height: 220px; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.55)); }

@media (max-width: 700px) {
  .emblem-seal { width: 190px; height: 190px; margin-bottom: 14px; }
  .hero-emblem { width: 160px; height: 160px; }
}

main { padding: 44px 0 80px; }

.section { margin-bottom: 44px; }
.section:last-child { margin-bottom: 0; }

.rule {
  border: none;
  border-top: 1px solid var(--grey-line);
  margin: 44px 0;
}

/* ---------------- Cards / panels ---------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  padding: 22px 24px;
}

/* ---------------- Gym vetoes ---------------- */
.vetoes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 20px; }
.veto-card h3 { color: var(--gold); font-size: 18px; margin-bottom: 16px; }
.mon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mon-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  border: 1px solid var(--grey-line);
  border-radius: 8px;
  padding: 8px;
  min-width: 0;
}
.mon-chip img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.mon-chip span { font-size: 14px; font-weight: 600; color: var(--white); line-height: 1.25; min-width: 0; overflow-wrap: break-word; word-break: break-word; }

.callout {
  border: 1px solid var(--gold-soft-strong);
  background: var(--gold-soft);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 15px;
}
.callout strong { color: var(--gold); }

ul.clean, ol.clean { padding-left: 1.2em; margin: 0 0 1em; }
ul.clean li, ol.clean li { margin-bottom: 8px; }

table.plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
table.plain th, table.plain td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--grey-line);
}
table.plain th { color: var(--gold); font-family: "Lato", sans-serif; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.btn:hover { text-decoration: none; background: #e8c34e; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn.ghost:hover { background: var(--gold-soft); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ---------------- Gym leader breakdown rows ---------------- */
.leaders-list { display: flex; flex-direction: column; }

.leader-row {
  display: grid;
  grid-template-columns: 260px 1fr 210px;
  gap: 30px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--grey-line);
}
.leaders-list > .leader-row:first-child { padding-top: 0; }
.leaders-list > .leader-row:last-child { border-bottom: none; padding-bottom: 0; }

.leader-row .photo-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--grey-line);
  flex: none;
}
.leader-row .photo-box img { width: 100%; height: 100%; object-fit: cover; }

.leader-row .leader-text { min-width: 0; }
.leader-row .badge-name { color: var(--gold); font-family: "Lato", sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.leader-row h3 { margin: 4px 0 2px; font-size: 22px; }
.leader-row .years { color: var(--grey-text); font-size: 13px; margin-bottom: 8px; }
.leader-row .type-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 12px;
}
/* Pok\00e9mon type colors */
.leader-row .type-tag[data-type="normal"]   { background: #A8A878; color: #000; }
.leader-row .type-tag[data-type="fire"]     { background: #F08030; color: #fff; }
.leader-row .type-tag[data-type="water"]    { background: #6890F0; color: #fff; }
.leader-row .type-tag[data-type="electric"] { background: #F8D030; color: #000; }
.leader-row .type-tag[data-type="grass"]    { background: #78C850; color: #fff; }
.leader-row .type-tag[data-type="ice"]      { background: #98D8D8; color: #000; }
.leader-row .type-tag[data-type="fighting"] { background: #C03028; color: #fff; }
.leader-row .type-tag[data-type="poison"]   { background: #A040A0; color: #fff; }
.leader-row .type-tag[data-type="ground"]   { background: #E0C068; color: #000; }
.leader-row .type-tag[data-type="flying"]   { background: #A890F0; color: #fff; }
.leader-row .type-tag[data-type="psychic"]  { background: #F85888; color: #fff; }
.leader-row .type-tag[data-type="bug"]      { background: #A8B820; color: #fff; }
.leader-row .type-tag[data-type="rock"]     { background: #B8A038; color: #fff; }
.leader-row .type-tag[data-type="ghost"]    { background: #705898; color: #fff; }
.leader-row .type-tag[data-type="dragon"]   { background: #7038F8; color: #fff; }
.leader-row .type-tag[data-type="dark"]     { background: #705848; color: #fff; }
.leader-row .type-tag[data-type="steel"]    { background: #B8B8D0; color: #000; }
.leader-row .type-tag[data-type="fairy"]    { background: #EE99AC; color: #000; }
.leader-row p { font-size: 15px; color: var(--white); margin-bottom: 0; }

.leader-row .badge-box {
  width: 210px;
  height: 210px;
  border: 1px solid var(--grey-line);
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex: none;
  justify-self: end;
}
.leader-row .badge-box img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 780px) {
  .leader-row {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }
  .leader-row .photo-box { max-width: 320px; }
  .leader-row .badge-box { width: 140px; height: 140px; justify-self: start; }
}

/* ---------------- Tournament blocks ---------------- */
.tourney {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}
.tourney img { border-radius: 10px; border: 1px solid var(--grey-line); }
.tourney .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.tourney .meta span {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid var(--gold-soft-strong);
  background: var(--gold-soft);
  padding: 3px 9px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .tourney { grid-template-columns: 1fr; }
  .tourney img { max-width: 260px; }
}

/* ---------------- Gallery ---------------- */
.gallery-grid {
  columns: 4 240px;
  column-gap: 12px;
}
.gallery-grid img {
  width: 100%;
  margin: 0 0 12px;
  border-radius: 8px;
  border: 1px solid var(--grey-line);
  break-inside: avoid;
  cursor: zoom-in;
}
@media (max-width: 700px) {
  .gallery-grid { columns: 2 160px; }
}

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.lightbox .close-x { position: absolute; top: 18px; right: 24px; color: var(--white); font-size: 28px; cursor: pointer; font-family: "Lato"; }

/* ---------------- Footer ---------------- */
footer.site-footer {
  border-top: 1px solid var(--grey-line);
  padding: 34px 0;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--grey-text); font-size: 13.5px; font-weight: 600; }
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.footer-copy { color: #6f6a5f; font-size: 12px; }

/* ---------------- Mobile nav ---------------- */
@media (max-width: 800px) {
  nav.primary {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    justify-content: flex-start;
    border-top: 1px solid var(--grey-line);
    margin-top: 12px;
    padding-top: 10px;
  }
  #nav-toggle:checked ~ nav.primary { display: flex; }
  nav.primary a { padding: 10px 6px; }
  .nav-burger { display: flex; }
}
