/* styles.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --neon-green: #39FF14;
}

/* Hard reset for horizontal overflow (fix for iOS Safari) */
html, body {
  overflow-x: hidden;
  width: 100vw;
  max-width: 100%;
  position: relative;
}

/* Custom Image Filters for sports collage */
.custom-filter {
  filter: grayscale(100%) contrast(1.2) brightness(0.6);
  transition: filter 0.5s ease;
}

.custom-filter:hover {
  filter: grayscale(0%) contrast(1.1) brightness(0.8);
}

/* Base Neon Text Glow */
.neon-text-glow {
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5),
    0 0 20px rgba(57, 255, 20, 0.3),
    0 0 30px rgba(57, 255, 20, 0.1);
  animation: textFlicker 3s linear infinite alternate;
}

@keyframes textFlicker {
  0% {
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 20px rgba(57, 255, 20, 0.3);
  }

  100% {
    text-shadow: 0 0 15px rgba(57, 255, 20, 0.8), 0 0 30px rgba(57, 255, 20, 0.5), 0 0 45px rgba(57, 255, 20, 0.2);
  }
}

/* Outline Neon Button */
.btn-neon {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(57, 255, 20, 0.2);
}

.btn-neon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.4), transparent);
  transition: left 0.5s ease;
}

.btn-neon:hover::before {
  left: 100%;
}

.btn-neon:hover {
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.6), 0 0 30px rgba(57, 255, 20, 0.3);
}

/* Solid Neon Button */
.btn-neon-solid {
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-neon-solid::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

/* Feature cards specific glow */
.feature-card {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(57, 255, 20, 0.15);
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-green);
}

/* Sponsor Marquee Animation */
.animate-marquee {
  animation: marquee 35s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 1.5rem));
    /* Adjust for gap */
  }
}

/* Mobile Menu Animation */
.animate-slide-down-fade {
  animation: slideDownFade 0.3s ease-out forwards;
}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}