/**
 * PredictLottoPro - Unified Global Styles
 * Design System: Tech-Casino hybrid with Navy/Sky/Gold palette
 * Version: 1.0.0
 * Last Updated: 2025-11-08
 */

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  /* Background Colors */
  --bg-base: #0A1128;                    /* Navy principal */
  --bg-elevated: #0D1B3A;                /* Cards/Paneles elevados */
  --bg-secondary: #1a2847;               /* Secondary backgrounds */
  
  /* Brand Colors */
  --color-sky: #297BFF;                  /* Primary action color */
  --color-gold: #FFB400;                 /* Highlight/Success (unified) */
  --color-jade: #00C897;                 /* Validation/Success */
  --color-coral: #FF4C4C;                /* Error/Alert */
  --color-purple: #9B5DE5;               /* AI/Futuristic accent */
  
  /* Border Radius Standard */
  --radius-sm: 0.5rem;                   /* 8px - Small elements */
  --radius-md: 0.75rem;                  /* 12px - Standard (UNIFIED) */
  --radius-lg: 1rem;                     /* 16px - Large cards */
  --radius-xl: 1.5rem;                   /* 24px - Extra large */
  
  /* Spacing Scale (8px base) */
  --space-1: 0.25rem;                    /* 4px */
  --space-2: 0.5rem;                     /* 8px */
  --space-3: 0.75rem;                    /* 12px */
  --space-4: 1rem;                       /* 16px */
  --space-6: 1.5rem;                     /* 24px */
  --space-8: 2rem;                       /* 32px */
  --space-10: 2.5rem;                    /* 40px */
  --space-12: 3rem;                      /* 48px */
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(41, 123, 255, 0.15);
  --shadow-lg: 0 20px 60px rgba(41, 123, 255, 0.15);
  --shadow-glow-sky: 0 0 30px rgba(41, 123, 255, 0.5);
  --shadow-glow-gold: 0 0 30px rgba(255, 180, 0, 0.5);
  
  /* Borders */
  --border-subtle: rgba(41, 123, 255, 0.2);
  --border-strong: rgba(41, 123, 255, 0.4);
}

/* ============================================================
   Global Resets & Base Styles
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, var(--bg-base) 0%, var(--bg-secondary) 50%, var(--bg-base) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: white;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

/* ============================================================
   Logo PLP Component Styles
   ============================================================ */
.logo-plp {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.logo-plp-sm {
  height: 3rem;
  width: 3rem;
}

.logo-plp-md {
  height: 4rem;
  width: 4rem;
}

.logo-plp-lg {
  height: 6rem;
  width: 6rem;
}

.logo-plp-card {
  background: linear-gradient(135deg, rgba(41, 123, 255, 0.2), rgba(0, 200, 151, 0.1));
  border: 2px solid var(--border-strong);
  animation: logoPulse 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(41, 123, 255, 0.3);
}

.logo-plp-card:hover {
  box-shadow: var(--shadow-glow-sky);
}

.logo-plp-hero {
  background: linear-gradient(135deg, rgba(41, 123, 255, 0.3), rgba(155, 93, 229, 0.2), rgba(0, 200, 151, 0.1));
  border: 2px solid rgba(41, 123, 255, 0.5);
  box-shadow: 0 0 40px rgba(41, 123, 255, 0.4), inset 0 0 20px rgba(41, 123, 255, 0.1);
  animation: logoHeroPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(41, 123, 255, 0.4), inset 0 0 20px rgba(41, 123, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(41, 123, 255, 0.6), inset 0 0 30px rgba(41, 123, 255, 0.2);
  }
}

@keyframes logoHeroPulse {
  0%, 100% {
    box-shadow: 0 0 40px rgba(41, 123, 255, 0.4), inset 0 0 20px rgba(41, 123, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 60px rgba(41, 123, 255, 0.6), inset 0 0 30px rgba(41, 123, 255, 0.2);
  }
}

/* ============================================================
   Typography Utilities
   ============================================================ */
.font-heading {
  font-family: 'Orbitron', sans-serif;
}

.gradient-text {
  background: linear-gradient(to right, var(--color-sky), var(--color-gold), var(--color-jade));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Component Utilities
   ============================================================ */
.card-shimmer {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.05) 100%);
}

/* ============================================================
   Button Styles (Unified)
   ============================================================ */
.btn-primary {
  background: var(--color-sky);
  color: white;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  background: #4a9eff;
  box-shadow: var(--shadow-glow-sky);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   Input Styles (Unified)
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="password"] {
  border-radius: var(--radius-md);
  border: 2px solid var(--border-subtle);
  background: rgba(5, 8, 24, 0.8);
  padding: var(--space-4) var(--space-6);
  color: white;
  transition: all 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px rgba(41, 123, 255, 0.1), 0 0 20px rgba(41, 123, 255, 0.2);
}

/* ============================================================
   Card Styles (Unified)
   ============================================================ */
.card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
  nav,
  footer,
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}
