/* ============================================
   RankingCasinosBO - Main Stylesheet
   Bolivia - Tema oscuro (solo subida de fondo)
   ============================================ */

/* === CSS VARIABLES === */
:root {
  /* Primary Colors - Premium Gold/Yellow */
  --color-primary: #fbbf24;
  --color-primary-dark: #f59e0b;
  --color-primary-light: #fcd34d;
  
  /* Secondary Colors - Vibrant Purple */
  --color-secondary: #a855f7;
  --color-secondary-dark: #9333ea;
  --color-secondary-light: #c084fc;
  
  /* Accent - Electric Blue */
  --color-accent: #06b6d4;
  --color-accent-dark: #0891b2;
  
  /* Dark Theme Base - Bolivia (térmico terreño) */
  --color-dark: #0f0c0a;
  --color-dark-lighter: #2e261a;
  --color-dark-card: #2a2216;
  --color-gray: #8b8b9f;
  --color-gray-light: #40382a;
  --color-light: #2e261a;
  --color-white: #ffffff;
  
  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #fbbf24;
  --color-error: #ef4444;
  --color-info: #06b6d4;
  
  /* Premium Gradients */
  --gradient-primary: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #dc2626 100%);
  --gradient-secondary: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-dark: linear-gradient(180deg, #0f0c0a 0%, #2e261a 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
  
  /* Premium Shadows with Glow */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow-gold: 0 0 20px rgba(251, 191, 36, 0.3), 0 0 40px rgba(251, 191, 36, 0.1);
  --shadow-glow-purple: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 40px rgba(168, 85, 247, 0.1);
  --shadow-glow-blue: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 40px rgba(6, 182, 212, 0.1);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Container */
  --container-max: 1280px;
  --container-padding: 2rem;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-white);
  background: var(--color-dark);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(251, 191, 36, 0.03) 2px,
      rgba(251, 191, 36, 0.03) 4px
    );
  pointer-events: none;
  z-index: 1;
}

body > * {
  position: relative;
  z-index: 2;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.85);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--transition-base);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

a:hover {
  color: var(--color-primary-light);
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

strong { font-weight: 600; color: var(--color-primary); }
ul, ol { margin-left: 1.5rem; margin-bottom: var(--spacing-sm); }
li { margin-bottom: 0.5rem; color: rgba(255, 255, 255, 0.8); }

/* === CONTAINER === */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); width: 100%; }
.container-fluid { width: 100%; padding: 0 var(--container-padding); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-dark);
  font-weight: 700;
  box-shadow: var(--shadow-md), var(--shadow-glow-gold);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover:not(:disabled)::before { left: 100%; }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-xl), var(--shadow-glow-gold), 0 0 30px rgba(251, 191, 36, 0.4); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--color-white);
  font-weight: 700;
  box-shadow: var(--shadow-md), var(--shadow-glow-purple);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-secondary:hover:not(:disabled)::before { left: 100%; }
.btn-secondary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-xl), var(--shadow-glow-purple), 0 0 30px rgba(168, 85, 247, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
  position: relative;
}

.btn-outline:hover:not(:disabled) {
  background: var(--gradient-primary);
  color: var(--color-dark);
  border-color: transparent;
  box-shadow: var(--shadow-glow-gold), 0 0 25px rgba(251, 191, 36, 0.4);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-full { width: 100%; }

/* === CARDS === */
.card {
  background: var(--color-dark-card);
  border: 1px solid rgba(251, 191, 36, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow-gold);
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.3);
}

.card:hover::before { opacity: 1; }

.card-header { margin-bottom: var(--spacing-md); }
.card-title { font-size: 1.5rem; font-weight: 700; color: var(--color-white); margin-bottom: 0.5rem; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.card-body { color: rgba(255, 255, 255, 0.85); }

/* === BADGES === */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-full); line-height: 1; }
.badge-primary { background: var(--gradient-primary); color: var(--color-dark); font-weight: 700; box-shadow: 0 0 15px rgba(251, 191, 36, 0.3); }
.badge-secondary { background: var(--gradient-secondary); color: var(--color-white); font-weight: 700; box-shadow: 0 0 15px rgba(168, 85, 247, 0.3); }
.badge-success { background: var(--color-success); color: var(--color-dark); font-weight: 700; box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
.badge-warning { background: var(--gradient-gold); color: var(--color-dark); font-weight: 700; box-shadow: 0 0 15px rgba(251, 191, 36, 0.3); }
.badge-info { background: var(--color-info); color: var(--color-dark); font-weight: 700; }
.badge-error { background: var(--color-error); color: var(--color-white); font-weight: 700; box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); }

/* === SECTION === */
.section { padding: var(--spacing-2xl) 0; }

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.3));
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--gradient-gold);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* === GRID === */
.grid { display: grid; gap: var(--spacing-lg); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.fade-in { animation: fadeIn 0.6s ease forwards; }
.slide-in-left { animation: slideInLeft 0.6s ease forwards; }
.slide-in-right { animation: slideInRight 0.6s ease forwards; }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-gray); }
.bg-white { background-color: var(--color-dark-card); }
.bg-light { background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-dark-lighter) 100%); }
.bg-dark { background-color: var(--color-dark); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }
.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }

/* === RESPONSIVE === */
@media (max-width: 1024px) { :root { --container-padding: 1.5rem; } .grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
@media (max-width: 768px) {
  :root { --container-padding: 1rem; --spacing-xl: 2rem; --spacing-2xl: 3rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn { padding: 0.625rem 1.25rem; font-size: 0.9375rem; }
}
@media (max-width: 640px) { html { font-size: 15px; } .section { padding: var(--spacing-xl) 0; } }
