/* =============================================
   ESTILOS DE COMPONENTES - BITVEGAS CASINO
   ============================================= */

/* =============================================
   NAVEGACIÓN PRINCIPAL
   ============================================= */
.navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 428px;
  margin: 0 auto;
  z-index: 1000;
  background: rgba(13, 7, 4, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(232, 22, 16%, 0.3);
  padding: 8px;
}

.nav-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 900;
  transition: all 0.2s ease;
}

.nav-item.active {
  color: var(--casino-gold);
}

.nav-item-center {
  margin-top: -20px;
}

.nav-item-center .nav-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.nav-item-center.active .nav-icon {
  background: linear-gradient(135deg, #f6d365, #d4a017);
  border: 3px solid #d4a017;
  box-shadow: 0 0 20px rgba(212, 160, 23, 0.5);
}

.nav-item-center:not(.active) .nav-icon {
  background: linear-gradient(135deg, #2a1a00, #1a0e00);
  border: 3px solid rgba(212, 160, 23, 0.4);
}

.nav-item:not(.nav-item-center) .nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s ease;
}

.nav-item:not(.nav-item-center).active .nav-icon {
  background: rgba(212, 160, 23, 0.2);
  border: 1px solid rgba(212, 160, 23, 0.4);
}

/* =============================================
   MODALES
   ============================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.modal-content {
  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: 24px;
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

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

.modal-body {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.modal-footer {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.toast {
  background: linear-gradient(135deg, #1a1200 0%, #0d0900 100%);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 0.75rem;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease;
  transition: all 0.3s ease;
}

.toast.removing {
  animation: slideOutRight 0.3s ease;
  opacity: 0;
  transform: translateX(100%);
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.3);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.3);
}

.toast-warning {
  border-color: rgba(245, 158, 11, 0.3);
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  color: #22c55e;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-warning .toast-icon {
  color: #f59e0b;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 2px;
  color: hsl(var(--foreground));
}

.toast-message {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.toast-close {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

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

/* =============================================
   TARJETAS DE JUEGOS
   ============================================= */
.game-card {
  background: linear-gradient(135deg, #1a1200, #0d0900);
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: 1rem;
  padding: 16px;
  text-decoration: none;
  color: hsl(var(--foreground));
  transition: all 0.2s ease;
  display: block;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color) 0%, transparent 100%);
  opacity: 0.1;
  z-index: 0;
}

.game-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.game-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.game-info {
  flex: 1;
}

.game-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.game-description {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
}

.game-arrow {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* =============================================
   ESTADÍSTICAS Y PROGRESO
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-card {
  background: linear-gradient(135deg, #1a1200, #0d0900);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.stat-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--casino-gold);
  margin-bottom: 2px;
}

.stat-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f6d365, #d4a017);
  border-radius: 5px;
  transition: width 0.5s ease;
}

/* =============================================
   TABS
   ============================================= */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(232, 22, 16%, 0.2);
}

.tab-button {
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-button:hover {
  background: rgba(232, 28, 14%, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.tab-button.active {
  background: var(--casino-gold);
  color: #1a1a2e;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* =============================================
   FORMULARIOS
   ============================================= */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: hsl(var(--foreground));
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(232, 28, 14%, 0.1);
  border: 1px solid rgba(232, 28, 14%, 0.3);
  border-radius: 12px;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

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

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

.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 4px;
}

/* =============================================
   BADGES Y ETIQUETAS
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.badge-error {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.badge-primary {
  background: rgba(212, 175, 55, 0.2);
  color: var(--casino-gold);
}

/* =============================================
   AVATARES Y PERFILES
   ============================================= */
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid rgba(212, 175, 55, 0.5);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(212, 175, 55, 0.4), rgba(0, 0, 0, 0.6));
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
  color: var(--casino-gold);
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-small {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.avatar-large {
  width: 80px;
  height: 80px;
  font-size: 32px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
  .modal-content {
    margin: 16px;
    padding: 20px;
  }
  
  .toast-container {
    right: 16px;
    left: 16px;
    max-width: none;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tabs {
    flex-wrap: wrap;
  }
  
  .tab-button {
    flex: 1;
    min-width: 0;
  }
}
