/* ============================================
   BASKET MANAGER - Global Styles
   Tema: Oscuro, atmósferico, PC Basket 6 vibe
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Variables ---- */
:root {
  --color-bg:         #0a0c10;
  --color-bg2:        #0f1117;
  --color-bg3:        #151820;
  --color-surface:    #1a1e2a;
  --color-surface2:   #1f2433;
  --color-border:     #252a38;
  --color-border2:    #2e3548;

  --color-primary:    #e8a020;
  --color-primary2:   #f0b030;
  --color-accent:     #3a7bd5;
  --color-accent2:    #4a8be5;
  --color-danger:     #e05050;
  --color-success:    #40c070;
  --color-muted:      #6b7280;

  --color-text:       #e8eaf0;
  --color-text2:      #b0b8c8;
  --color-text3:      #6b7590;

  --font-title:   'Orbitron', sans-serif;
  --font-ui:      'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:       8px;
  --radius-lg:    14px;
  --radius-xl:    20px;

  --shadow-sm:    0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.6);
  --shadow-glow:  0 0 20px rgba(232, 160, 32, 0.25);
  --shadow-blue:  0 0 20px rgba(58, 123, 213, 0.3);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg2); }
::-webkit-scrollbar-thumb { background: var(--color-border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-muted); }

/* ---- Tipografía ---- */
h1, h2, h3 { font-family: var(--font-title); letter-spacing: 0.05em; }
h4, h5, h6, label, button { font-family: var(--font-ui); }

/* ---- Utilidades ---- */
.text-primary  { color: var(--color-primary); }
.text-accent   { color: var(--color-accent); }
.text-muted    { color: var(--color-muted); }
.text-success  { color: var(--color-success); }
.text-danger   { color: var(--color-danger); }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ---- Botones base ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #c07010);
  color: #0a0c10;
  box-shadow: 0 4px 15px rgba(232,160,32,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary2), var(--color-primary));
  box-shadow: 0 6px 25px rgba(232,160,32,0.5);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--color-surface2);
  color: var(--color-text2);
  border: 1px solid var(--color-border2);
}
.btn-secondary:hover {
  background: var(--color-border);
  color: var(--color-text);
  border-color: var(--color-muted);
}

.btn-lg {
  padding: 14px 40px;
  font-size: 1.15rem;
}

/* ---- Partículas de fondo ---- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(58,123,213,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,123,213,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-top {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232,160,32,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-bottom {
  position: fixed;
  bottom: -200px;
  left: 20%;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(58,123,213,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
