/* ============================================================
   Plataforma Clubs — estilos base compartilhados
   ============================================================ */

:root {
  --bg:        #0f1419;
  --surface:   #1a2027;
  --surface-2: #232b34;
  --border:    #2d3742;
  --text:      #e2e8f0;
  --muted:     #94a3b8;
  --primary:   #3b82f6;
  --primary-h: #2563eb;
  --success:   #10b981;
  --warning:   #f59e0b;
  --danger:    #ef4444;
  --radius:    10px;
  --shadow:    0 4px 14px rgba(0,0,0,.35);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 .5rem 0; font-weight: 600; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1rem 0; line-height: 1.55; color: var(--muted); }

label {
  display: block;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .35rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: .7rem .85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .95rem;
  transition: border-color .15s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
}

button {
  cursor: pointer;
  font-size: .95rem;
  font-weight: 500;
  padding: .7rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--primary);
  color: white;
  transition: background .15s, opacity .15s;
}
button:hover { background: var(--primary-h); }
button:disabled { opacity: .5; cursor: not-allowed; }

button.secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
button.secondary:hover { background: var(--border); }

button.danger { background: var(--danger); }
button.danger:hover { background: #dc2626; }

button.success { background: var(--success); }
button.success:hover { background: #059669; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.badge.success { background: rgba(16,185,129,.15); color: var(--success); border-color: transparent; }
.badge.warning { background: rgba(245,158,11,.15); color: var(--warning); border-color: transparent; }
.badge.danger  { background: rgba(239,68,68,.15);  color: var(--danger);  border-color: transparent; }

.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.35);
  color: var(--text);
  font-size: .9rem;
  margin-bottom: 1rem;
}
.alert.error   { background: rgba(239,68,68,.12);  border-color: rgba(239,68,68,.4); }
.alert.success { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.4); }

header.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header.app-header .brand { font-weight: 700; font-size: 1.1rem; letter-spacing: .3px; }
header.app-header .brand span { color: var(--primary); }

/* ============================================================
   Responsivo — base
   ============================================================ */
@media (max-width: 640px) {
  .container { padding: 1rem .75rem; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.1rem; }
  button { min-height: 44px; }
  input, textarea, select { font-size: 16px; } /* evita zoom no iOS */
  header.app-header { padding: .65rem 1rem; }
}

/* Banner "ESTAMOS AO VIVO AGORA!" — páginas públicas (campeonatos, liga, enquete) */
.live-banner{background:linear-gradient(135deg,#ff0000,#9146ff);border-radius:12px;padding:1rem 1.1rem;margin-bottom:1rem;text-align:center;box-shadow:0 4px 18px rgba(145,70,255,.35)}
.live-banner-title{font-size:1.15rem;font-weight:800;color:#fff;letter-spacing:.5px;display:flex;align-items:center;justify-content:center;gap:.5rem;margin-bottom:.65rem}
.live-dot{width:12px;height:12px;background:#fff;border-radius:50%;animation:pulse-live 1.1s infinite}
.live-banner-links{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center}
.live-banner-link{padding:.55rem 1.1rem;border-radius:8px;font-weight:700;font-size:.9rem;text-decoration:none;color:#fff;transition:transform .15s,filter .2s}
.live-banner-link:hover{transform:translateY(-1px);filter:brightness(1.1)}
.live-banner-link.yt{background:#ff0000}
.live-banner-link.tw{background:#9146ff}
.live-banner-link.ig{background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888)}
.live-banner-link.kk{background:#53fc18;color:#0b1a08}
@keyframes pulse-live{0%,100%{opacity:1}50%{opacity:.3}}
