/* style.css - SVG symmetric bracket styling */
body {
  background: linear-gradient(180deg,#071025 0%,#0b1220 100%);
  color: #e6eef6;
  font-family: Inter, Roboto, Arial, sans-serif;
  margin:0;
  min-height:100vh;
}
header { text-align:center; padding:28px 10px 6px; }
h1 { margin:0; color:#9be7ff; font-size:22px; }
.muted { color:#9fb0c3; margin-top:6px; font-size:13px; }

#bracket-wrap {
  position: relative;
  max-width: 1400px;
  margin: 20px auto 80px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  padding: 20px;
  overflow: auto;
}

/* SVG sits behind the cards */
#bracket-svg { position:absolute; left:0; top:0; z-index:1; }

/* root for absolute positioned match cards */
#bracket-root { position:relative; z-index:2; min-height: 400px; }

/* match card */
.match-card {
  width: 220px;
  background: linear-gradient(180deg,#0b1420,#08111a);
  border-radius: 8px;
  padding: 10px;
  color: #eaf6ff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  border: 1px solid rgba(140,180,220,0.06);
}
.match-card .team-block { padding:4px 2px; }
.team-name { font-weight:700; font-size:14px; color:#eaf6ff; }
.vote-count { font-size:13px; color:#9fcbe6; margin-top:3px; }

.vote-row { display:flex; flex-direction:column; gap:6px; margin:8px 0; }
.vote-row form { width:100%; }
.vote-row .vote-btn {
  width:100%;
  background:#1976d2;
  border:none;
  color:white;
  padding:8px;
  border-radius:6px;
  cursor:pointer;
  font-weight:700;
}
.vote-row .vote-btn:disabled { opacity:0.45; cursor:not-allowed; }

.match-card .status { font-size:13px; color:#d0e8ff; }

/* winner highlight */
.match-card.winner {
  box-shadow: 0 10px 30px rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46,204,113,0.2);
}

/* admin styles (small) kept for consistency */
.admin-wrap { max-width:1000px; margin:20px auto; padding:20px; background:rgba(255,255,255,0.02); border-radius:10px; }
.team-list { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.team-item { background:#16202b; padding:8px 12px; border-radius:6px; color:#bfefff; }
.match-controls { display:flex; gap:8px; align-items:center; justify-content:center; margin-top:8px; }

/* responsive */
@media (max-width:900px){
  #bracket-wrap { padding:10px; }
  .match-card { width:200px; }
}
