/* =========================
   Copa dos CLT - style.css (Copa10 Style)
   - Visual dark premium
   - Cards glass + borda suave
   - Botões e tabs estilo Copa10
   - Bracket e ranking organizados
========================= */

:root{
  --bg1:#050a12;
  --bg2:#071426;
  --card:#0b1a2b;
  --card2:#0a1626;
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.14);
  --text:#eaf2ff;
  --muted:rgba(234,242,255,.70);

  --green1:#22c55e;
  --green2:#16a34a;

  --red1:#ef4444;
  --red2:#b91c1c;

  --shadow: 0 18px 45px rgba(0,0,0,.55);
  --radius: 22px;
  --radius2: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(900px 700px at 15% 12%, rgba(56,189,248,.12), transparent 55%),
    radial-gradient(900px 700px at 80% 25%, rgba(34,197,94,.12), transparent 55%),
    radial-gradient(1000px 800px at 50% 100%, rgba(168,85,247,.12), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg1));
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }

.wrap{
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 14px 90px;
}

/* =========================
   Top Header (Copa10)
========================= */
.topCard{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brandBox{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brandIcon{
  width:46px; height:46px;
  display:grid;
  place-items:center;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  font-size:22px;
}
.brandTitle{
  font-weight: 950;
  letter-spacing:.2px;
  font-size: 18px;
  line-height: 1.1;
}
.brandSub{
  font-size: 13px;
  color: var(--muted);
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 320px;
}

.switchBox{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.btnTop{
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  color: var(--text);
  cursor:pointer;
  transition: .15s ease;
  white-space:nowrap;
}
.btnTop:hover{
  transform: translateY(-1px);
  border-color: var(--stroke2);
  background: rgba(255,255,255,.08);
}
.btnTop.active{
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.12);
}

/* =========================
   Cards / Typography
========================= */
.card{
  margin-top: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.h1{
  font-size: 26px;
  font-weight: 950;
  margin: 0 0 6px;
  letter-spacing:.2px;
}
.muted{ color: var(--muted); }
.small{ font-size: 12px; color: var(--muted); }

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* =========================
   Inputs / Labels
========================= */
.label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing:.2px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.input{
  width: 100%;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline:none;
  font-weight: 800;
}
.input::placeholder{ color: rgba(234,242,255,.45); }
.input:focus{
  border-color: rgba(56,189,248,.55);
  box-shadow: 0 0 0 4px rgba(56,189,248,.12);
}

/* =========================
   Buttons (Copa10)
========================= */
.btn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 13px 14px;
  border-radius: 999px;
  font-weight: 950;
  cursor:pointer;
  transition:.15s ease;
  user-select:none;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
}
.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
}

.btnFull{ width:100%; }

.btnGreen{
  border-color: rgba(34,197,94,.50);
  background: linear-gradient(180deg, rgba(34,197,94,.95), rgba(22,163,74,.92));
  color:#05110a;
  box-shadow: 0 14px 26px rgba(34,197,94,.22);
}
.btnGreen:hover{
  filter: brightness(1.03);
}

.btnRed{
  border-color: rgba(239,68,68,.60);
  background: linear-gradient(180deg, rgba(239,68,68,.95), rgba(185,28,28,.92));
  color:#160606;
  box-shadow: 0 14px 26px rgba(239,68,68,.22);
}

.btnGhost{
  background: rgba(255,255,255,.05);
}

.rowButtons{
  display:flex;
  gap:10px;
  align-items:flex-end;
  flex-wrap:wrap;
}
@media (max-width: 420px){
  .rowButtons{ width:100%; }
  .rowButtons .btn{ flex:1; }
}

/* =========================
   Tabs (Copa10)
========================= */
.tabs{
  margin-top: 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.tab{
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 950;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(234,242,255,.92);
  cursor:pointer;
  transition:.15s ease;
}
.tab:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
}
.tab.active{
  background: rgba(56,189,248,.12);
  border-color: rgba(56,189,248,.45);
}

.tab-panel{ margin-top: 12px; }
.hidden{ display:none !important; }

/* =========================
   Toast
========================= */
#toastArea{
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index: 9999;
  padding: 0 10px;
}
.toast{
  min-width: 220px;
  max-width: 90vw;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 900;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.toast.erro{
  border-color: rgba(239,68,68,.50);
}

/* =========================
   Modal Admin
========================= */
#modalAdmin.hidden{ display:none; }
#modalAdmin{
  position: fixed;
  inset:0;
  z-index: 9998;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
}
#modalAdminBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(5px);
}
#modalAdminBox{
  position:relative;
  width: min(520px, 92vw);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.modalTitle{
  font-size: 18px;
  font-weight: 950;
  margin: 0 0 6px;
}
.modalActions{
  margin-top: 14px;
  display:flex;
  gap:10px;
}
.modalActions .btn{ flex:1; }

/* =========================
   Public cards
========================= */
.public-card{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px;
}

/* =========================
   Ranking / Season
========================= */
.seasonCard, .rankingCard{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.seasonTitle, .rankingTitle{
  font-weight: 950;
  margin-bottom: 10px;
  letter-spacing:.2px;
}
.rankingList{
  margin-top: 10px;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
}
.rankingRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 12px;
  background: rgba(0,0,0,.22);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 900;
}
.rankingRow:last-child{ border-bottom:none; }

/* =========================
   Bracket / Confrontos (melhor visual)
========================= */
.fase-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  margin-bottom: 12px;
  font-weight: 950;
}

.confronto{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  margin-top: 10px;
}

.timeSlot{
  flex: 1;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}

.timeSlot.winner{
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.10);
  box-shadow: 0 0 0 4px rgba(34,197,94,.08);
}

.escudo{
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 6px;
}

.nomeJogador{
  font-weight: 950;
  font-size: 14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.placarBox{
  width: 170px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  flex-direction: column;
}

.placarInput{
  width: 62px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: var(--text);
  text-align:center;
  font-weight: 950;
  outline:none;
}
.placarInput:focus{
  border-color: rgba(56,189,248,.55);
  box-shadow: 0 0 0 4px rgba(56,189,248,.10);
}

.statusOK{
  font-weight: 950;
  color: rgba(234,242,255,.95);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 8px 10px;
  border-radius: 999px;
  text-align:center;
  min-width: 90px;
}

/* Mobile: confrontos empilham melhor */
@media (max-width: 560px){
  .confronto{ flex-direction: column; }
  .placarBox{ width:100%; flex-direction: row; justify-content:center; }
  .timeSlot{ width:100%; }
}

/* =========================
   Mini cards de copas
========================= */
.card-mini{
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

/* =========================
   Select results rows (times)
========================= */
.resultRow{
  transition:.12s ease;
}
.resultRow:hover{
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.35) !important;
}