/* copas.css — Estilos exclusivos da página Copas Históricas
   Isolado: NÃO importar no index.html nem no dashboard.html.
   Redeclara as CSS variables do design system da Federação. */

:root {
  --navy: #0B2D6B;
  --blue: #1565C0;
  --pale: #E3F2FD;
  --vpale: #F0F7FF;
  --bg: #F4F7FC;
  --card: #fff;
  --border: #E2E8F0;
  --text: #0F172A;
  --muted: #64748B;
  --light: #94A3B8;
  --gold: #D97706;
  --green: #059669;
  --sh: 0 1px 4px rgba(11,45,107,.08);
  --shmd: 0 4px 16px rgba(11,45,107,.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
button { cursor: pointer; font-family: inherit; }
a { text-decoration: none; }

/* ── WRAP ── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ── HEADER ── */
.copa-header {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(11,45,107,.06);
  height: 54px;
}
.copa-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.back-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color .15s;
}
.back-btn:hover { color: var(--navy); }
.header-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--navy);
  letter-spacing: .2px;
}

/* ── HERO ──
   A imagem de fundo é "Federação Capa.png" (raiz do projeto).
   O overlay escuro garante legibilidade do texto sobre qualquer foto. */
.copa-hero {
  background:
    linear-gradient(to bottom,
      rgba(10,37,88,.80) 0%,
      rgba(10,37,88,.58) 45%,
      rgba(0,0,0,.68) 100%),
    url("../Federação Capa.png") center 30% / cover no-repeat;
  background-color: #0a2558; /* fallback se a imagem não carregar */
  padding: 52px 0 44px;
  position: relative;
  overflow: hidden;
}
.copa-hero-inner {
  position: relative;
  z-index: 1;
}
.copa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(217,119,6,.22);
  border: 1px solid rgba(217,119,6,.45);
  color: #FCD34D;
  padding: 4px 13px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.copa-hero h1 {
  color: white;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.6px;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.copa-hero > .copa-hero-inner > p,
.copa-hero-subtitle {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  margin-bottom: 28px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: white;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.68);
  margin-top: 4px;
  letter-spacing: .3px;
}

/* ── MAIN ── */
main { padding: 28px 0 90px; } /* 90px: 64px nav + 26px breathing room */

/* ── YEAR FILTER ── */
.year-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.year-btn {
  padding: 8px 22px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.year-btn:hover { border-color: var(--blue); color: var(--blue); }
.year-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
  box-shadow: 0 4px 12px rgba(11,45,107,.22);
}

/* ── SECTION TITLE ── */
.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -.2px;
}
.section-wrap { margin-bottom: 40px; }

/* ── TAÇAS GRID ── */
.tacas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── TACA CARD ── */
.taca-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--sh);
  overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.taca-card:hover { box-shadow: var(--shmd); transform: translateY(-2px); }

.taca-card-header {
  padding: 20px 22px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.taca-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.taca-name { font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.taca-sub  { font-size: 12px; color: var(--muted); margin-top: 2px; }

.taca-positions {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.taca-pos { display: flex; align-items: center; gap: 12px; }
.pos-medal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.pos-info { flex: 1; min-width: 0; }
.pos-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-clube {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-empty { font-size: 13px; color: var(--light); font-style: italic; }

/* ── DESTAQUES ── */
.destaques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.destaque-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--sh);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow .18s, transform .15s;
}
.destaque-card:hover { box-shadow: var(--shmd); transform: translateY(-1px); }
.destaque-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.destaque-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 5px;
}
.destaque-nome { font-size: 15px; font-weight: 800; color: var(--text); line-height: 1.2; }
.destaque-clube { font-size: 12px; color: var(--muted); margin-top: 3px; }
.destaque-empty { font-size: 13px; color: var(--light); font-style: italic; }

/* ── BOTTOM NAV — igual ao do app principal ── */
.copa-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 20px rgba(11,45,107,.07);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.copa-nav-inner {
  display: flex;
  width: 100%;
  max-width: 540px;
  justify-content: space-around;
}
.copa-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  flex: 1;
  color: var(--light);
  transition: color .15s;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.copa-nav-btn:hover { color: var(--blue); }
.copa-nav-icon {
  width: 38px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background .15s;
}
.copa-nav-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .2px;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .copa-hero { padding: 36px 0 32px; }
  .copa-hero h1 { font-size: 24px; }
  .tacas-grid { grid-template-columns: 1fr; }
  .destaques-grid { grid-template-columns: 1fr; }
  .year-btn { padding: 7px 16px; font-size: 13px; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 22px; }
}
