/* css/base.css - Sistema de Diseño y Tokens "Liga de las Casas ANDEL" */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Paleta Base - Dark Magic & High-End Heraldry */
  --bg-dark: #090d16;
  --bg-card: rgba(18, 24, 40, 0.75);
  --bg-card-hover: rgba(28, 36, 60, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(251, 191, 36, 0.3);

  /* Acentos y Metales Nobles */
  --gold: #fbbf24;
  --gold-glow: #f59e0b;
  --silver: #cbd5e1;
  --bronze: #d97706;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Categorías */
  --cat-limpieza: #06b6d4;
  --cat-comportamiento: #f59e0b;
  --cat-actitud: #10b981;
  --cat-academico: #8b5cf6;
  --cat-deporte: #ec4899;
  --cat-lectura: #3b82f6;

  /* Tipografías */
  --font-display: 'Cinzel', serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sombras y Luces */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 25px rgba(251, 191, 36, 0.25);
  --shadow-glow: 0 0 35px var(--glow-color, rgba(59, 130, 246, 0.3));

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(30, 58, 138, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(126, 34, 206, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(4, 120, 87, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Estrellas místicas sutiles de fondo */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

/* Tipografía */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-weight: 700;
  color: var(--text-main);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fffbeb 0%, #fbbf24 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Botones y Controles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  outline: none;
  text-decoration: none;
  user-select: none;
}

.btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #0f172a;
  border: 1px solid #fef08a;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, #fcd34d 0%, #b45309 100%);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* Tarjetas Glassmorphism */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Insignias / Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Toast de Notificación en Vivo */
.toast-banner {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(251, 191, 36, 0.4);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-banner.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px var(--gold));
}

.toast-body h4 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.toast-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.toast-points {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #34d399;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}

.toast-points.negative {
  color: #f87171;
  text-shadow: 0 0 12px rgba(248, 113, 113, 0.5);
}
