@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Eco Solarpunk / Cyberpunk Styles */
:root {
  --eco-green: #10e874;
  --eco-cyan: #00f0ff;
  --eco-orange: #ff9f1c;
  --eco-bg: #070b12;
}

body {
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  background-color: var(--eco-bg);
  font-family: 'Tajawal', sans-serif;
  overscroll-behavior: none;
}

/* Animations */
@keyframes scaleIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-scale-in {
  animation: scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Inventory Slots Styling */
.inv-slot {
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.inv-slot.active {
  box-shadow: 0 0 10px #00f0ff;
  border-color: #00f0ff;
}

/* Bin Buttons Active Feedback */
.bin-btn:active {
  filter: brightness(1.2);
}

/* Canvas smooth rendering */
canvas {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* Responsive Touch button adjustments for small devices */
@media (max-height: 500px) {
  #touch-controls button {
    width: 3.25rem !important;
    height: 3.25rem !important;
  }
}

/* Custom Scrollbar for Leaderboard */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.5);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.8);
}