/* ══════════════════════════════════════
   GOATZ COMMON — Variáveis, Reset, Base
   Fontes: Bebas Neue (display) + Barlow Condensed (UI) + Poppins (body)
   ══════════════════════════════════════ */

:root {
  --orange: #FF6B00;
  --orange-bright: #FF8C00;
  --orange-glow: rgba(255,107,0,0.4);
  --black: #0A0A0A;
  --dark: #111111;
  --card: #181818;
  --card2: #202020;
  --border: #2a2a2a;
  --text: #E8E8E8;
  --muted: #777;
  --white: #ffffff;
  --green: #2ecc71;
  --red: #e74c3c;
  --gold: #FFD700;
  --gold-bg: rgba(255,215,0,0.08);
  --silver: #C0C0C0;
  --silver-bg: rgba(192,192,192,0.06);
  --bronze: #CD7F32;
  --bronze-bg: rgba(205,127,50,0.06);
  --copa: rgba(30,100,255,0.07);
  --copa-border: rgba(30,100,255,0.4);
  --rebaixamento: rgba(200,40,40,0.1);
  --rebaixamento-border: rgba(200,40,40,0.35);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

html {
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--dark);
}

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange-bright); }
::-webkit-scrollbar-corner { background: var(--dark); }

.fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* SHARED HEADER */
header {
  position: relative;
  background: var(--dark);
  border-bottom: 2px solid var(--orange);
  overflow: hidden;
  padding: 0 24px;
}
header::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
}
header::after {
  content: '';
  position: absolute;
  bottom: -80px; right: 40px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 16px;
  position: relative;
  z-index: 1;
}
.logo-area { display: flex; align-items: center; gap: 18px; }
.logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--orange) 0%, #c94a00 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 24px var(--orange-glow), 0 0 0 2px rgba(255,107,0,0.3);
  flex-shrink: 0;
}
.logo-text h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 2px;
  color: #fff;
}
.logo-text h1 span { color: var(--orange); }
.logo-text p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 2px;
}
.header-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 4px;
  padding: 5px 12px;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 60px;
  position: relative;
  z-index: 1;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.back-btn:hover { color: var(--orange); border-color: var(--orange); background: rgba(255,107,0,0.08); }

.loading-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px; gap: 14px; color: var(--muted);
}
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border); border-top-color: var(--orange);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.error-state {
  background: rgba(200,40,40,0.06); border: 1px solid rgba(200,40,40,0.25);
  border-radius: 10px; padding: 20px 24px; color: #e88; font-size: 14px;
  display: flex; gap: 10px; align-items: flex-start;
}
.empty-state {
  background: var(--card); border: 1px dashed var(--border);
  border-radius: 10px; padding: 36px; text-align: center;
  color: var(--muted); font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; letter-spacing: 1px;
}

footer {
  border-top: 1px solid var(--border); text-align: center;
  padding: 24px; color: var(--muted); font-size: 12px;
  letter-spacing: 1px; position: relative; z-index: 1;
}
footer span { color: var(--orange); }
