/* ============================================================
   AnalisaVasco — extra.css
   Estilos complementares para WP search form, conteúdo editorial,
   header scrollado, admin bar, utilitários.
   ============================================================ */

/* ── Search Form (WP gerado) ──────────────────────────────── */
.search-form {
  display: flex;
  gap: .5rem;
  max-width: 600px;
}
.search-form .search-field {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .6rem 1rem;
  color: var(--white);
  font-family: var(--font-b);
  font-size: .875rem;
  outline: none;
  transition: border-color var(--t);
}
.search-form .search-field:focus { border-color: var(--red); }
.search-form .search-submit {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: .6rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .05em;
  transition: background var(--t);
}
.search-form .search-submit:hover { background: #E0132F; }

/* ── Header scrollado ─────────────────────────────────────── */
.av-header.scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 8px 32px rgba(0,0,0,.7);
}

/* ── Subnav sticky (abaixo do header) ─────────────────────── */
.av-subnav {
  position: sticky;
  top: 57px;
  z-index: 400;
}
.admin-bar .av-subnav { top: 89px; }
@media screen and (max-width: 782px) {
  .admin-bar .av-header { top: 46px; }
  .admin-bar .av-subnav { top: 103px; }
}

/* ── Conteúdo editorial (dentro de .av-card__body) ───────── */
.av-entry-content { color: var(--muted); line-height: 1.8; }
.av-entry-content h2,
.av-entry-content h3,
.av-entry-content h4 { color: var(--white); margin: 1.5rem 0 .75rem; font-weight: 800; }
.av-entry-content p  { margin-bottom: 1rem; }
.av-entry-content ul,
.av-entry-content ol { margin: 1rem 0 1rem 1.5rem; }
.av-entry-content ul { list-style: disc; }
.av-entry-content ol { list-style: decimal; }
.av-entry-content li { color: var(--muted); margin-bottom: .35rem; }
.av-entry-content strong { color: var(--white); }
.av-entry-content a { color: var(--red); }
.av-entry-content a:hover { color: var(--gold); }
.av-entry-content blockquote {
  border-left: 3px solid var(--red);
  padding: .75rem 1.25rem;
  background: rgba(200,16,46,.06);
  border-radius: 0 var(--r) var(--r) 0;
  margin: 1.25rem 0;
  font-style: italic;
}
.av-entry-content img {
  border-radius: var(--r-lg);
  max-width: 100%;
  height: auto;
}
.av-entry-content table { width: 100%; margin: 1.25rem 0; }
.av-entry-content table th,
.av-entry-content table td {
  padding: .6rem .875rem;
  border: 1px solid var(--border);
  font-size: .875rem;
}
.av-entry-content table th {
  background: var(--surface);
  color: var(--muted-light);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .08em;
}
.av-entry-content code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .15rem .4rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--gold-light);
}

/* ── Widget ───────────────────────────────────────────────── */
.av-widget { margin-bottom: 1.5rem; }
.av-widget__title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .875rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.av-breadcrumb {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.av-breadcrumb a { color: var(--muted); }
.av-breadcrumb a:hover { color: var(--white); }

/* ── Player hero section ──────────────────────────────────── */
.av-player-hero {
  background: linear-gradient(145deg, var(--red-dark) 0%, var(--surface) 60%);
  position: relative;
  overflow: hidden;
}
.av-player-hero__bg-num {
  position: absolute;
  right: 1rem;
  top: -.5rem;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255,255,255,.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.av-player-hero__content {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
}
.av-player-hero__photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.15);
  flex-shrink: 0;
}
.av-player-hero__photo--placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--muted);
  flex-shrink: 0;
}
.av-player-quick-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
}
.av-player-quick-stats__item {
  background: var(--card);
  padding: .875rem .5rem;
  text-align: center;
}
.av-player-quick-stats__val {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.av-player-quick-stats__key {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: .25rem;
}

/* ── Odds boxes ───────────────────────────────────────────── */
.odd-box:hover {
  background: rgba(201,168,76,.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ── Scrollbar personalizado ──────────────────────────────── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: var(--surface); }
::-webkit-scrollbar-thumb  { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark); }

/* ── Utilities extras ─────────────────────────────────────── */
.av-select {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .55rem .875rem;
  color: var(--white);
  font-family: var(--font-b);
  font-size: .875rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--t);
}
.av-select:focus { border-color: var(--red); }

/* Responsive extras */
@media (max-width: 768px) {
  .av-player-quick-stats { grid-template-columns: repeat(3, 1fr); }
  .av-player-hero__bg-num { font-size: 6rem; }
  .av-player-hero__content { padding: 1.5rem 1rem 1rem; }
  .av-player-hero__photo,
  .av-player-hero__photo--placeholder { width: 64px; height: 64px; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .av-header, .av-subnav, .av-footer,
  .betting-zone, .sponsor-slot,
  .btn, #av-player-modal { display: none !important; }
  .av-cols { grid-template-columns: 1fr !important; }
  body { background: #fff !important; color: #000 !important; }
  .av-card { border: 1px solid #ddd !important; background: #fff !important; }
  .av-table td, .av-table th { color: #000 !important; border-color: #ddd !important; }
}
