/* Styles personnalisés pour l'ambiance Sci-Fi / Melvor Spatiale */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --neon-cyan: #06b6d4;
  --neon-blue: #3b82f6;
  --neon-purple: #a855f7;
  --neon-amber: #f59e0b;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #030712;
  color: #f3f4f6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-scifi {
  font-family: 'Chakra Petch', sans-serif;
}

/* Arrière-plan étoiles subtil */
.space-bg {
  background-color: #030712;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.06) 0%, transparent 40%),
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 160px 120px, #ffffff, rgba(0,0,0,0));
  background-size: 100% 100%, 100% 100%, 250px 250px, 300px 300px, 200px 200px, 400px 400px;
}

/* Scrollbars modernes */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0b0f19;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Animations d'effets néon */
.neon-glow-cyan {
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35);
}

.neon-glow-amber {
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}

/* Animation douce pour les barres de progression */
.progress-pulse {
  animation: pulse-light 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-light {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .85;
  }
}

/* ===================================================
   TEXTES FLOTTANTS (FLOATING COMBAT & GATHERING TEXT)
   =================================================== */
.floating-text {
  position: absolute;
  pointer-events: none;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 800;
  white-space: nowrap;
  user-select: none;
  z-index: 60;
  animation: float-rise-fade 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px currentColor;
}

@keyframes float-rise-fade {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.65);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -10px) scale(1.15);
  }
  30% {
    transform: translate(-50%, -20px) scale(1);
  }
  80% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -55px) scale(0.9);
  }
}

.floating-dmg-enemy {
  color: #f43f5e; /* Rose vif */
}

.floating-dmg-player {
  color: #fb7185; /* Dégâts subis */
}

.floating-shield {
  color: #38bdf8; /* Cyan bouclier */
}

.floating-miss {
  color: #94a3b8; /* Gris manqué */
  font-size: 0.85rem;
}

.floating-heal {
  color: #34d399; /* Vert émeraude */
}

.floating-loot {
  color: #fbbf24; /* Ambre / Or */
}

.floating-xp {
  color: #60a5fa; /* Bleu XP */
}

/* ===================================================
   COULEURS DE RARETÉ DU STUFF & ITEMS (STANDARD RPG)
   =================================================== */
.rarity-poor {
  color: #94a3b8; /* Gris - Médiocre */
}
.border-rarity-poor {
  border-color: #475569;
}
.bg-rarity-poor {
  background-color: rgba(71, 85, 105, 0.15);
}

.rarity-common {
  color: #f8fafc; /* Blanc - Commun */
}
.border-rarity-common {
  border-color: #64748b;
}
.bg-rarity-common {
  background-color: rgba(100, 116, 139, 0.15);
}

.rarity-uncommon {
  color: #22c55e; /* Vert - Inhabituel */
}
.border-rarity-uncommon {
  border-color: #16a34a;
}
.bg-rarity-uncommon {
  background-color: rgba(22, 163, 74, 0.15);
}

.rarity-rare {
  color: #38bdf8; /* Bleu - Rare */
}
.border-rarity-rare {
  border-color: #0284c7;
}
.bg-rarity-rare {
  background-color: rgba(2, 132, 199, 0.18);
}

.rarity-epic {
  color: #c084fc; /* Violet - Épique */
}
.border-rarity-epic {
  border-color: #9333ea;
}
.bg-rarity-epic {
  background-color: rgba(147, 51, 234, 0.18);
}

.rarity-artifact {
  color: #ef4444; /* Rouge - Artefact */
}
.border-rarity-artifact {
  border-color: #dc2626;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}
.bg-rarity-artifact {
  background-color: rgba(220, 38, 38, 0.2);
}

.rarity-legendary {
  color: #f97316; /* Orange - Légendaire */
}
.border-rarity-legendary {
  border-color: #ea580c;
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.4);
}
.bg-rarity-legendary {
  background-color: rgba(234, 88, 12, 0.22);
}

/* ===================================================
   TOOLTIP SCI-FI FLOTTANT HAUTE FIDÉLITÉ
   =================================================== */
.scifi-tooltip-container {
  will-change: transform, opacity, left, top;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.8));
}

.scifi-tooltip-box {
  animation: tooltip-glow 3s ease-in-out infinite alternate;
}

@keyframes tooltip-glow {
  0% {
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
  }
  100% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
  }
}



