/* ══════════════════════════════════════════════════
   TOTAL FOOTBALL QUIZ — Main CSS
   Estilos compartidos en toda la web
   ══════════════════════════════════════════════════ */

:root {
  /* Colores */
  --bg:       #080c14;
  --bg2:      #0f1419;
  --bg3:      #151a21;
  --surface:  #1a2029;
  --surface2: #212831;
  --text:     #f0f3ff;
  --text2:    #9ca4b8;
  --text3:    #6c7489;
  --border:   rgba(156,164,184,0.15);
  --border2:  rgba(156,164,184,0.3);
  --green:    #00d67f;
  --blue:     #4da6ff;
  --purple:   #a78bfa;
  --amber:    #ffb347;
  --red:      #ff4d6d;
  
  /* Layout */
  --radius:    12px;
  --radius-sm: 8px;
  --max-w:     680px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; }
a { color: inherit; transition: color .15s; }
a:hover { color: var(--green); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.btn:hover { background: var(--bg3); border-color: var(--border2); }

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg);
}
.btn-primary:hover { background: #00c072; color: var(--bg); transform: translateY(-1px); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--border2);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg3); }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.badge-green { background: rgba(0,214,127,.15); color: var(--green); }
.badge-blue  { background: rgba(77,166,255,.15); color: var(--blue); }
.badge-amber { background: rgba(255,179,71,.15); color: var(--amber); }
.badge-red   { background: rgba(255,77,109,.15); color: var(--red); }
.badge-gray  { background: rgba(156,164,184,.15); color: var(--text3); }

/* ── Navbar ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-mark { font-size: 26px; }
.logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: .03em;
  line-height: 1;
}
.logo-name span { color: var(--green); }

.nav-right { display: flex; gap: 12px; align-items: center; }

.streak-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(0,214,127,.1);
  border: 1px solid rgba(0,214,127,.25);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

/* ── Footer ── */
.footer {
  padding: 32px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  color: var(--text3);
  line-height: 1.6;
}
.footer a { color: var(--text2); text-decoration: underline; }
.footer a:hover { color: var(--green); }

/* ── Modal ── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s;
}
.modal.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp .25s;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text3);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .12s;
}
.modal-close:hover { background: var(--surface); color: var(--text); }

/* ── Containers ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Utils ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* ── Animations ── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

@keyframes flash-correct {
  0%, 100% { background: rgba(0,214,127,.1); border-color: rgba(0,214,127,.4); }
  50% { background: rgba(0,214,127,.25); border-color: rgba(0,214,127,.6); }
}

@keyframes flash-wrong {
  0%, 100% { background: rgba(255,77,109,.1); border-color: rgba(255,77,109,.4); }
  50% { background: rgba(255,77,109,.25); border-color: rgba(255,77,109,.6); }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .logo-name { font-size: 18px; }
  .streak-pill { font-size: 11px; padding: 3px 10px; }
}
