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

/* Base Reset & Custom Variables */
:root {
  --neon-red: #FF204E;
  --dark-bg: #0F0F0F;
  --surface: #18181B;
}

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: #A1A1AA;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-red);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

/* Neon Glow Effects */
.neon-glow {
  box-shadow: 0 0 15px rgba(255, 32, 78, 0.4), 0 0 30px rgba(255, 32, 78, 0.2);
}
.neon-glow:hover {
  box-shadow: 0 0 20px rgba(255, 32, 78, 0.6), 0 0 40px rgba(255, 32, 78, 0.3);
}
.text-glow {
  text-shadow: 0 0 10px rgba(255, 32, 78, 0.5);
}

/* Animations */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.animate-marquee {
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
[dir='rtl'] .animate-marquee {
  animation-direction: reverse;
}

/* Card Hover */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-color: rgba(255, 32, 78, 0.3);
}

/* Form inputs remove spin buttons */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Toast animations */
@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
.toast-enter {
  animation: slideInUp 0.3s ease-out forwards;
}
.toast-leave {
  animation: fadeOut 0.3s ease-in forwards;
}

/* Hide scrollbar utility */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
