/* 1. BASE */
@import 'base/_variables.css';
@import 'base/_reset.css';
@import 'base/_typography.css';

/* 2. COMPONENTES (¡Ahora sí!) */
@import 'components/_buttons.css';
@import 'components/_cards.css';
@import 'components/_forms.css'; /* <--- Añade esta línea */
@import 'components/_modals.css';

/* 3. LAYOUT GLOBAL */
.main-wrapper {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Fondo ambiental (Luces) */
.ambient-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 50%, rgba(123, 44, 191, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 212, 255, 0.1), transparent 25%);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  z-index: 1;
}
/* NOTIFICACIONES FLOTANTES (TOASTS) */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 20, 35, 0.95);
  border: 1px solid var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-notification.achievement {
  border-color: var(--accent); /* Dorado */
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.toast-notification.achievement::before {
  content: '🏆';
}


.input-glass::placeholder {
  color: var(--text-muted) !important;
}

/* =========================================
   ESTILOS DE SALDO (DISEÑO MARKETPLACE)
   ========================================= */

.user-balance-wrapper {
    display: flex;
    align-items: center;
    gap: 8px; /* Separación entre el saldo y el botón + */
}
/* La pastilla del número */
.user-balance {
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 12px; border-radius: 20px; font-weight: 600; font-size: 0.9rem;
  color: #fff; display: flex; align-items: center; gap: 5px; transition: 0.3s;
}
.user-balance:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--primary-glow, #9d4edd); }
/* El botón redondo de añadir (+) */
.btn-icon-add {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(57, 255, 20, 0.1); color: var(--bio-neon, #39ff14);
  font-size: 1.2rem; line-height: 1; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-icon-add:hover {
  background: var(--bio-neon, #39ff14); color: #000;
  transform: scale(1.1) rotate(90deg); box-shadow: 0 0 10px var(--bio-neon, #39ff14);
}
/* =========================================
   NOTIFICACIÓN DE LOGROS (ESTILO XBOX/PS)
   ========================================= */

.achievement-toast {
  position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
  background: rgba(20, 20, 35, 0.95); border: 1px solid #ffd700;          
  padding: 15px 25px; border-radius: 50px; display: flex; align-items: center;
  gap: 15px; box-shadow: 0 0 30px rgba(255, 215, 0, 0.4); 
  z-index: 99999; transition: top 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); 
  min-width: 320px; backdrop-filter: blur(10px);
}
/* Clase que añade JS para bajar la tarjeta */
.achievement-toast.active { top: 30px; }
/* El Icono (🏆) */
.achievement-icon { font-size: 2.5rem; animation: pulseGold 2s infinite; }
/* Textos */
.achievement-text h4 {
  margin: 0; color: #ffd700; font-family: 'Cinzel', serif; font-size: 1rem;
  letter-spacing: 1px; text-transform: uppercase;
}
.achievement-text p {
margin: 2px 0 0 0; color: white; font-size: 0.9rem; font-family: sans-serif;
}
/* Animación del latido del trofeo */
@keyframes pulseGold {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,215,0,0)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(255,215,0,0.5)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,215,0,0)); }
}
