/* =========================
   SPAND GLOBAL STYLE
========================= */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  --spand-bg-dark: #050808;
  --spand-teal: #5fd2c8;
  --spand-teal-soft: rgba(95, 210, 200, 0.35);
  --spand-card: rgba(15, 20, 20, 0.72);
  --spand-border: rgba(95, 210, 200, 0.18);
  --text-main: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.6);
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body {
  font-family: "Outfit", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);

  /* FACEIT / SPAND BACKGROUND */
  background-image: url("../Media/fundo.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* overlay escuro + glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1100px 650px at 60% 70%, rgba(95,210,200,.14), transparent 60%),
    radial-gradient(900px 520px at 20% 25%, rgba(95,210,200,.10), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.75));
}

/* LINKS */
a {
  color: var(--spand-teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* BOTÕES BASE */
button {
  font-family: inherit;
  background: linear-gradient(135deg, #6ee7d8, #3bc9b5);
  border: none;
  color: #031312;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* CARDS BASE */
.card {
  background: var(--spand-card);
  border: 1px solid var(--spand-border);
  border-radius: 16px;
  backdrop-filter: blur(14px);
}

/* TEXT */
.text-muted {
  color: var(--text-muted);
}


/* ===== Standings Form + Qualification Line ===== */

.form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.form-dot {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}

.form-dot.win {
  border-color: rgba(110,231,216,0.35);
  background: rgba(110,231,216,0.14);
  color: rgba(110,231,216,0.95);
}

.form-dot.loss {
  border-color: rgba(255, 77, 109, 0.35);
  background: rgba(255, 77, 109, 0.12);
  color: rgba(255, 77, 109, 0.95);
}

.form-dot.draw {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}

.qualify-sep td {
  padding: 0 !important;
  border-bottom: none !important;
}

.qualify-sep span {
  display: block;
  margin: 0 14px 12px 14px;
  padding: 10px 12px;
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: rgba(255,255,255,0.62);
  border: 1px dashed rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
}

.row-qualified td {
  background: rgba(110,231,216,0.045);
}

.row-eliminated td {
  opacity: 0.78;
}


/* Swiss round dots */
.standings.swiss .c { text-align:center; width:56px; }

.rd-dot{
  display:inline-flex;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
}

.rd-dot.win{
  border-color: rgba(110,231,216,0.35);
  background: rgba(110,231,216,0.14);
  color: rgba(110,231,216,0.95);
}
.rd-dot.loss{
  border-color: rgba(255, 77, 109, 0.35);
  background: rgba(255, 77, 109, 0.12);
  color: rgba(255, 77, 109, 0.95);
}
.rd-dot.empty{
  opacity: .55;
}

/* Status pills */
.pill-adv{
  border-color: rgba(110,231,216,.26);
  background: rgba(110,231,216,.10);
}
.pill-out{
  border-color: rgba(255, 77, 109, .26);
  background: rgba(255, 77, 109, .10);
}
.pill-mid{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.65);
}

.standings .rec{
  font-weight: 900;
  color: rgba(255,255,255,.86);
  letter-spacing: .02em;
}


/* ===== Admin form controls (dark theme) ===== */
:root{
  --field-bg: rgba(255,255,255,0.04);
  --field-bg2: rgba(255,255,255,0.06);
  --field-br: rgba(255,255,255,0.10);
  --field-br2: rgba(95,210,200,0.22);
}

label{
  display:block;
  margin: 0 0 6px 2px;
  color: rgba(255,255,255,0.70);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

input, textarea, select{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--field-br);
  background: var(--field-bg);
  color: rgba(255,255,255,0.92);
  outline: none;
  transition: border-color .15s ease, background .15s ease, transform .05s ease;
}

textarea{ resize: vertical; min-height: 110px; }

input::placeholder, textarea::placeholder{
  color: rgba(255,255,255,0.35);
}

input:focus, textarea:focus, select:focus{
  border-color: var(--field-br2);
  background: var(--field-bg2);
}

select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.55) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* melhor spacing dos form rows */
.form-row{ margin-bottom: 12px; }

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo{
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 10px; /* tira se for SVG */
}

.brand-logo{
  filter: drop-shadow(0 0 4px rgba(33, 39, 38, 0.35));
}