/* =============================================
   ESTILOS PRINCIPALES - BITVEGAS CASINO
   ============================================= */

/* =============================================
   VARIABLES CSS Y CONFIGURACIÓN GLOBAL
   ============================================= */
:root {
  /* Colores del casino */
  --casino-gold: #d4af37;
  --casino-gold-light: #f6d365;
  --casino-red: #DC143C;
  --casino-black: #1a1a1a;
  --casino-green: #006400;
  --casino-purple: #8B008B;
  --neon-blue: #00FFFF;
  --neon-pink: #FF1493;
  --dark-bg: #0d0704;
  --card-bg: #1a1200;
  --accent: #16213e;
  
  /* Colores del sistema */
  --background: 232 42% 5%;
  --foreground: 45 25% 92%;
  --card: 232 38% 8%;
  --card-foreground: 45 25% 92%;
  --popover: 232 38% 8%;
  --popover-foreground: 45 25% 92%;
  --primary: 43 96% 56%;
  --primary-foreground: 232 42% 5%;
  --secondary: 232 28% 14%;
  --secondary-foreground: 45 25% 92%;
  --muted: 232 28% 12%;
  --muted-foreground: 232 15% 50%;
  --accent: 189 100% 42%;
  --accent-foreground: 232 42% 5%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 98%;
  --border: 232 22% 16%;
  --input: 232 28% 14%;
  --ring: 43 96% 56%;
  --radius: 0.75rem;
}

/* =============================================
   RESET Y ESTILOS BASE
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', 'Arial', sans-serif;
  background: linear-gradient(180deg, #0d0a00 0%, #0d0704 100%);
  color: hsl(var(--foreground));
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   UTILIDADES DE TEXTO
   ============================================= */
.gold-text {
  background: linear-gradient(135deg, #f6d365 0%, #d4a017 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.futuristic-font {
  font-family: 'Space Grotesk', 'Courier New', monospace;
}

/* =============================================
   LAYOUT PRINCIPAL
   ============================================= */
#app {
  min-height: 100vh;
  background: linear-gradient(180deg, #0d0a00 0%, #0d0704 100%);
}

.container {
  max-width: 428px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* =============================================
   PANTALLA DE CARGA
   ============================================= */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #0d0a00 0%, #0d0704 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-content {
  text-align: center;
}

.loading-content > * {
  margin-bottom: 12px;
}

.loading-content > *:last-child {
  margin-bottom: 0;
}

.loading-icon {
  font-size: 4rem;
  animation: bounce 2s infinite;
}

.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 4px solid rgba(212, 175, 55, 0.3);
  border-top: 4px solid var(--casino-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}

.loading-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
}

/* =============================================
   ESTILOS DE TARJETAS CASINO
   ============================================= */
.casino-card {
  background: linear-gradient(135deg, #1a1200 0%, #0d0900 100%);
  border: 2px solid rgba(212, 160, 23, 0.3);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.1), 0 8px 32px rgba(0, 0, 0, 0.6);
  border-radius: 1rem;
  padding: 1.25rem;
}

.casino-card:hover {
  border-color: rgba(212, 160, 23, 0.5);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.2), 0 12px 40px rgba(0, 0, 0, 0.8);
}

/* =============================================
   ESTILOS DE BOTONES
   ============================================= */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f6d365 0%, #d4a017 100%);
  color: #1a1a2e;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(232, 28, 14%, 0.2);
  color: hsl(var(--foreground));
  border: 1px solid rgba(232, 28, 14%, 0.3);
}

.btn-secondary:hover {
  background: rgba(232, 28, 14%, 0.3);
  border-color: rgba(232, 28, 14%, 0.5);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

/* =============================================
   ESTILOS DE INPUTS
   ============================================= */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(232, 28, 14%, 0.1);
  border: 1px solid rgba(232, 28, 14%, 0.3);
  border-radius: 0.75rem;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--casino-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* =============================================
   UTILIDADES DE ESPACIADO
   ============================================= */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

/* =============================================
   UTILIDADES DE TEXTO Y VISIBILIDAD
   ============================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-muted { color: rgba(255, 255, 255, 0.6); }
.text-primary { color: var(--casino-gold); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
  .container {
    padding: 0 12px;
  }
  
  .text-4xl { font-size: 2rem; }
  .text-3xl { font-size: 1.5rem; }
  .text-2xl { font-size: 1.25rem; }
}
