/* ═══════════════════════════════════════════════════════════
   BOLÃO COPA 2026 — Custom Stylesheet
   ═══════════════════════════════════════════════════════════ */

:root {
  --wc-dark:    #070d1a;
  --wc-navy:    #0b1630;
  --wc-blue:    #003087;
  --wc-orange:  #ff6b00;
  --wc-gold:    #ffd700;
  --wc-green:   #00c851;
  --wc-red:     #e63946;
  --wc-surface: rgba(255,255,255,0.04);
  --wc-border:  rgba(255,255,255,0.10);
  --wc-text:    #e8eaf6;
  --wc-muted:   #8892b0;
  --radius:     14px;
  --shadow:     0 8px 32px rgba(0,0,0,0.4);
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--wc-dark);
  color: var(--wc-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,48,135,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 120%, rgba(255,107,0,0.12) 0%, transparent 60%);
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--wc-dark); }
::-webkit-scrollbar-thumb { background: var(--wc-blue); border-radius: 3px; }

/* ── Navbar ─────────────────────────────────────────────── */
.wc-navbar {
  background: rgba(7,13,26,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--wc-border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.wc-navbar .navbar-brand {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--wc-gold), var(--wc-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.wc-navbar .nav-link {
  color: var(--wc-muted) !important;
  font-weight: 500;
  transition: color .2s;
  padding: .5rem .9rem;
  border-radius: 8px;
}
.wc-navbar .nav-link:hover,
.wc-navbar .nav-link.active { color: var(--wc-text) !important; background: var(--wc-surface); }

/* ── Hero ───────────────────────────────────────────────── */
.wc-hero {
  background: linear-gradient(135deg, #0b1630 0%, #0a1628 50%, #0d1a10 100%);
  border-bottom: 1px solid var(--wc-border);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.wc-hero::before {
  content: '⚽';
  position: absolute;
  font-size: 18rem;
  right: -3rem;
  top: -4rem;
  opacity: 0.04;
  line-height: 1;
  animation: spin 40s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.wc-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
}

.wc-hero .highlight {
  background: linear-gradient(135deg, var(--wc-gold), var(--wc-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Cards ──────────────────────────────────────────────── */
.wc-card {
  background: var(--wc-surface);
  border: 1px solid var(--wc-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.wc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,107,0,0.3);
  box-shadow: 0 12px 40px rgba(255,107,0,0.1);
}

/* ── Match Card ─────────────────────────────────────────── */
.match-card {
  position: relative;
  overflow: hidden;
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wc-blue), var(--wc-orange));
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 1rem;
}

.team-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  text-align: center;
}

.team-flag {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.team-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--wc-text);
}

.vs-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--wc-muted);
  background: var(--wc-surface);
  border: 1px solid var(--wc-border);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  white-space: nowrap;
}

.match-info {
  padding: 0 1.2rem 1.2rem;
  border-top: 1px solid var(--wc-border);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--wc-muted);
  margin-bottom: 0.3rem;
}

.bet-value-badge {
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,107,0,0.1));
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  text-align: center;
  margin-bottom: 0.8rem;
}

.bet-value-badge .value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--wc-gold);
}

/* ── Score Input ────────────────────────────────────────── */
.score-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.score-block label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wc-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-input {
  width: 80px;
  height: 80px;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  background: rgba(255,255,255,0.06) !important;
  border: 2px solid var(--wc-border) !important;
  border-radius: 12px !important;
  color: var(--wc-text) !important;
  transition: border-color .2s, box-shadow .2s;
}

.score-input:focus {
  border-color: var(--wc-orange) !important;
  box-shadow: 0 0 0 4px rgba(255,107,0,0.15) !important;
  outline: none;
}

.score-separator {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--wc-muted);
  line-height: 80px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-wc {
  background: linear-gradient(135deg, var(--wc-orange), #ff4500);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  letter-spacing: 0.3px;
  transition: transform .2s, box-shadow .2s, filter .2s;
  box-shadow: 0 4px 15px rgba(255,107,0,0.35);
}

.btn-wc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,107,0,0.45);
  filter: brightness(1.08);
  color: #fff;
}

.btn-wc:active { transform: translateY(0); }

.btn-wc-outline {
  background: transparent;
  border: 2px solid var(--wc-orange);
  color: var(--wc-orange);
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  transition: all .2s;
}

.btn-wc-outline:hover {
  background: var(--wc-orange);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--wc-gold), #ffa500);
  border: none;
  color: #000;
  font-weight: 800;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 15px rgba(255,215,0,0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,215,0,0.45);
  color: #000;
}

/* ── Forms ──────────────────────────────────────────────── */
.wc-form-control {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid var(--wc-border) !important;
  border-radius: 10px !important;
  color: var(--wc-text) !important;
  padding: 0.7rem 1rem !important;
  transition: border-color .2s, box-shadow .2s;
}

.wc-form-control:focus {
  border-color: var(--wc-orange) !important;
  box-shadow: 0 0 0 3px rgba(255,107,0,0.15) !important;
  background: rgba(255,255,255,0.08) !important;
}

.wc-form-control::placeholder { color: var(--wc-muted) !important; }

.wc-label {
  color: var(--wc-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

/* ── Badges ─────────────────────────────────────────────── */
.badge-pending  { background: rgba(255,193,7,0.2);  color: #ffc107; border: 1px solid rgba(255,193,7,0.3); }
.badge-confirmed{ background: rgba(0,200,81,0.2);   color: #00c851; border: 1px solid rgba(0,200,81,0.3); }
.badge-rejected { background: rgba(230,57,70,0.2);  color: #e63946; border: 1px solid rgba(230,57,70,0.3); }

.result-exact   { color: var(--wc-gold); font-weight: 700; }
.result-winner  { color: var(--wc-green); font-weight: 600; }
.result-wrong   { color: var(--wc-red); }
.result-pending { color: var(--wc-muted); }

/* ── Score Display ──────────────────────────────────────── */
.live-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,215,0,0.05);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 12px;
  margin: 0.8rem 0;
}

.live-score .score-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--wc-gold);
  line-height: 1;
}

.live-score .score-div {
  font-size: 2rem;
  font-weight: 300;
  color: var(--wc-muted);
}

/* ── Flash Messages ─────────────────────────────────────── */
.flash-alert {
  border-radius: 12px;
  border: none;
  font-weight: 500;
  padding: 0.9rem 1.2rem;
}

.flash-success {
  background: rgba(0,200,81,0.15);
  border: 1px solid rgba(0,200,81,0.3);
  color: #4dff91;
}

.flash-error {
  background: rgba(230,57,70,0.15);
  border: 1px solid rgba(230,57,70,0.3);
  color: #ff6b7a;
}

.flash-warning {
  background: rgba(255,193,7,0.12);
  border: 1px solid rgba(255,193,7,0.3);
  color: #ffd54f;
}

/* ── Scoreboard Table ───────────────────────────────────── */
.wc-table {
  /* Sobrescreve as variáveis CSS do Bootstrap 5 para tema escuro */
  --bs-table-bg:          transparent;
  --bs-table-color:       var(--wc-text);
  --bs-table-border-color:transparent;
  --bs-table-striped-bg:  transparent;
  --bs-table-hover-bg:    rgba(255,255,255,0.03);
  --bs-table-hover-color: var(--wc-text);
  background: transparent;
  color: var(--wc-text);
  border-collapse: separate;
  border-spacing: 0;
}

/* Garante que as células herdem o tema escuro */
.wc-table > :not(caption) > * > * {
  background-color: transparent;
  color: var(--wc-text);
  border-bottom: none;
  box-shadow: none;
}

.wc-table thead th {
  background: rgba(255,255,255,0.05);
  color: var(--wc-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
  padding: 0.75rem 1rem;
}

.wc-table thead th:first-child { border-radius: 10px 0 0 0; }
.wc-table thead th:last-child  { border-radius: 0 10px 0 0; }

.wc-table tbody tr {
  border-bottom: 1px solid var(--wc-border);
  transition: background .15s;
}

.wc-table tbody tr:hover > * {
  --bs-table-bg: rgba(255,255,255,0.03);
  background-color: rgba(255,255,255,0.03);
}

.wc-table tbody td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--wc-border);
  border-bottom: none;
  vertical-align: middle;
}

/* Linhas de resultado — sobrescreve o Bootstrap em nível de célula */
.wc-table tbody tr.row-exact > * {
  --bs-table-bg: rgba(255,215,0,0.07);
  background-color: rgba(255,215,0,0.07);
}
.wc-table tbody tr.row-winner > * {
  --bs-table-bg: rgba(0,200,81,0.07);
  background-color: rgba(0,200,81,0.07);
}

/* ── PIX Modal ──────────────────────────────────────────── */
.pix-key-box {
  background: rgba(255,255,255,0.06);
  border: 2px dashed rgba(255,215,0,0.4);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
}

.pix-key-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wc-gold);
  letter-spacing: 0.5px;
  word-break: break-all;
}

/* ── Upload Area ────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--wc-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--wc-orange);
  background: rgba(255,107,0,0.05);
}

.upload-area input[type="file"] {
  display: none;
}

/* ── Section Headers ────────────────────────────────────── */
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  color: var(--wc-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.divider-gold {
  height: 3px;
  width: 40px;
  background: linear-gradient(90deg, var(--wc-gold), var(--wc-orange));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.wc-footer {
  background: rgba(7,13,26,0.95);
  border-top: 1px solid var(--wc-border);
  padding: 2rem 0;
  margin-top: 4rem;
  color: var(--wc-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ── Admin Sidebar ──────────────────────────────────────── */
.admin-sidebar {
  background: rgba(11,22,48,0.95);
  border-right: 1px solid var(--wc-border);
  min-height: calc(100vh - 60px);
  padding: 1.5rem 0;
  position: sticky;
  top: 60px;
}

.admin-sidebar .nav-link {
  color: var(--wc-muted) !important;
  padding: 0.7rem 1.5rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: var(--wc-text) !important;
  border-left-color: var(--wc-orange);
  background: rgba(255,107,0,0.08);
}

/* ── Stat Cards (admin) ─────────────────────────────────── */
.stat-card {
  background: var(--wc-surface);
  border: 1px solid var(--wc-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.stat-card .stat-label {
  color: var(--wc-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.3rem;
}

/* ── Utilities ──────────────────────────────────────────── */
.text-gold   { color: var(--wc-gold); }
.text-orange { color: var(--wc-orange); }
.text-muted  { color: var(--wc-muted) !important; }
.bg-wc       { background: var(--wc-surface); }
.border-wc   { border-color: var(--wc-border) !important; }

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.trophy-icon { font-size: 1.2rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 576px) {
  .team-flag { font-size: 2rem; }
  .score-input { width: 64px; height: 64px; font-size: 1.5rem; }
  .live-score .score-num { font-size: 2rem; }
}
