/* ========== LEGENDS SPORTS BAR — CUSTOM STYLES ========== */

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(200, 164, 78, 0.3);
  color: #ffffff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060c1a;
}
::-webkit-scrollbar-thumb {
  background: rgba(200, 164, 78, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 164, 78, 0.6);
}

/* --- Scroll Indicator Animation --- */
@keyframes scrollIndicator {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}
.animate-scroll-indicator {
  animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .animate-scroll-indicator { animation: none; }
}

/* --- Navbar --- */
#navbar.scrolled {
  background: rgba(6, 12, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 164, 78, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .menu-line {
  background: #ffffff;
}

/* --- Mobile Menu --- */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* --- Menu lines animation --- */
#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.5rem;
}

/* --- Image hover effects --- */
img {
  display: block;
}

/* --- Button focus states --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(200, 164, 78, 0.8);
  outline-offset: 2px;
}

/* --- Form inputs --- */
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .font-serif {
    word-break: break-word;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet adjustments */
}
