/* Blox Fruits Calculator - Modern Gaming Theme & Custom Utilities */

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

:root {
  --font-outfit: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-rajdhani: 'Rajdhani', sans-serif;
}

body {
  font-family: var(--font-outfit);
  background-color: #0b0f19;
  color: #f1f5f9;
  overflow-x: hidden;
}

.font-gaming {
  font-family: var(--font-rajdhani);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 85, 0.4);
}

.glass-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(71, 85, 105, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Trade Slot Empty State */
.trade-slot-empty {
  border: 2px dashed rgba(71, 85, 105, 0.4);
  background: rgba(15, 23, 42, 0.4);
  transition: all 0.2s ease-in-out;
}

.trade-slot-empty:hover {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(14, 165, 233, 0.08);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
  transform: scale(1.02);
}

/* Rarity Glow Effects */
.glow-mythical {
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.25);
  border-color: rgba(244, 63, 94, 0.5) !important;
}

.glow-legendary {
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.5) !important;
}

.glow-rare {
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.5) !important;
}

.glow-uncommon {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5) !important;
}

.glow-gamepass {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5) !important;
}

/* Animated Verdict Pulse */
@keyframes pulse-win {
  0%, 100% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
  }
}

@keyframes pulse-lose {
  0%, 100% {
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.25);
  }
  50% {
    box-shadow: 0 0 30px rgba(244, 63, 94, 0.5);
  }
}

.animate-pulse-win {
  animation: pulse-win 2.5s infinite;
}

.animate-pulse-lose {
  animation: pulse-lose 2.5s infinite;
}

/* Shimmer Highlight for Top Fruits */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-text {
  background: linear-gradient(90deg, #f87171, #fbbf24, #60a5fa, #c084fc, #f87171);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}

/* Modal Animations */
.modal-overlay {
  transition: opacity 0.2s ease-out;
}

.modal-content {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease-out;
}

/* Demand Stars */
.demand-star-active {
  color: #f59e0b;
}

.demand-star-inactive {
  color: #475569;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .trade-slot-card {
    min-height: 80px;
  }
}
