body {
  background: #121212;
  color: #ffffff;
  min-height: 100vh;
}

html {
  background: #121212;
}

.header-nav {
  background: rgba(30, 30, 30, 0.7); /* Updated background */
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(249, 170, 75, 0.1);
  margin: 10px 16px;
  border-radius: 18px;
  transform: translateY(0);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .header-nav {
    margin: 16px 24px;
  }
}

/* Floating effect on scroll */
.header-nav.floating {
  transform: translateY(-8px);
  background: rgba(30, 30, 30, 0.9);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(249, 170, 75, 0.1);
  border-bottom: 1px solid rgba(249, 170, 75, 0.2);
}

/* Add glow effects to the navigation elements */
.nav-item-wrapper {
  position: relative;
  overflow: hidden;
}

.nav-item-wrapper::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #f9aa4b, #9d45ff, #f9aa4b);
  z-index: -1;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-item-wrapper:hover::before {
  opacity: 0.4;
}

.nav-item {
  position: relative;
  z-index: 1;
  background: rgba(36, 36, 36, 0.7);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nav-item:hover {
  transform: translateY(-2px);
  background: rgba(36, 36, 36, 0.9);
}

.mobile-menu {
  background: rgba(30, 30, 30, 0.98);
  backdrop-filter: blur(20px);
  position: fixed;
  top: 84px; /* Adjusted for the new header margin */
  left: 16px;
  right: 16px;
  bottom: 16px;
  transform: translateX(110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 40;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(249, 170, 75, 0.15);
  max-height: calc(100vh - 100px);
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Icon glow animations */
@keyframes trophyGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(249, 170, 75, 0.4))
      drop-shadow(0 0 4px rgba(249, 170, 75, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 4px rgba(249, 170, 75, 0.6))
      drop-shadow(0 0 8px rgba(249, 170, 75, 0.4))
      drop-shadow(0 0 12px rgba(249, 170, 75, 0.2));
  }
}

@keyframes crownGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(157, 69, 255, 0.4))
      drop-shadow(0 0 4px rgba(157, 69, 255, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 4px rgba(157, 69, 255, 0.6))
      drop-shadow(0 0 8px rgba(157, 69, 255, 0.4))
      drop-shadow(0 0 12px rgba(157, 69, 255, 0.2));
  }
}

/* Apply animations to the icons */
.fa-trophy {
  animation: trophyGlow 2s ease-in-out infinite;
  color: #f9aa4b;
}

.fa-crown {
  animation: crownGlow 2s ease-in-out infinite;
  color: #9d45ff;
}

/* Add hover effect to enhance the glow */
a:hover .fa-trophy {
  filter: drop-shadow(0 0 6px rgba(249, 170, 75, 0.8))
    drop-shadow(0 0 12px rgba(249, 170, 75, 0.4));
}

a:hover .fa-crown {
  filter: drop-shadow(0 0 6px rgba(157, 69, 255, 0.8))
    drop-shadow(0 0 12px rgba(157, 69, 255, 0.4));
}

.nav-islive {
  position: relative;
  margin-left: 12px;
}

.nav-islive a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(76, 175, 80, 0.1); /* Success color with low opacity */
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-islive a:hover {
  background: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.3);
  transform: translateY(-1px);
}

.nav-islive svg {
  width: 16px;
  height: 16px;
  animation: pulse 2s infinite;
}

.nav-islive span {
  color: #4caf50; /* Success green */
  font-weight: 600;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* Pulse animation for the SVG */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* Glow effect behind the button */
.nav-islive a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(76, 175, 80, 0.2);
  transform: translate(-50%, -50%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-islive a:hover::before {
  opacity: 1;
}

/* Fade in animation when the live indicator appears */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add this class to the live indicator when it becomes visible */
.nav-islive.visible {
  animation: fadeIn 0.3s ease forwards;
}

/* Add these to your existing styles.css */

/* Fade in from bottom animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in from left animation */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale in animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Stagger animation classes */
.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-left {
  opacity: 0;
  animation: fadeInLeft 0.6s ease forwards;
}

.animate-scale {
  opacity: 0;
  animation: scaleIn 0.6s ease forwards;
}

/* Animation delay utilities */
.delay-100 {
  animation-delay: 100ms;
}
.delay-200 {
  animation-delay: 200ms;
}
.delay-300 {
  animation-delay: 300ms;
}
.delay-400 {
  animation-delay: 400ms;
}
.delay-500 {
  animation-delay: 500ms;
}

/* Button styles */
.button-primary {
  background-color: #f9aa4b; /* Gold accent color */
  color: #000000; /* Black text for contrast */
  transition: all 0.3s ease;
}

.button-primary:hover {
  background-color: #d4922b; /* Darker gold for hover */
  transform: translateY(-2px);
}

.button-secondary {
  background-color: #9d45ff; /* Purple accent color */
  color: #000000; /* Black text for contrast */
  transition: all 0.3s ease;
}

.button-secondary:hover {
  background-color: #8534e6; /* Darker purple for hover */
  transform: translateY(-2px);
}

/* Card/elevated elements */
.card {
  background-color: #242424; /* Tertiary background */
  border: 1px solid #333333; /* Primary border */
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(249, 170, 75, 0.3); /* Secondary border with opacity */
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Text colors */
.text-primary {
  color: #ffffff;
}

.text-secondary {
  color: #e0e0e0;
}

.text-tertiary {
  color: #bbbbbb;
}

.text-accent {
  color: #f9aa4b;
}

.text-accent-secondary {
  color: #9d45ff;
}

/* Status colors */
.text-success {
  color: #4caf50;
}

.text-warning {
  color: #ff9800;
}

.text-error {
  color: #f44336;
}

.text-info {
  color: #2196f3;
}

/* Gradients */
.gold-gradient {
  background: linear-gradient(90deg, #f9aa4b, #d4922b);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.purple-gradient {
  background: linear-gradient(90deg, #9d45ff, #8534e6);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
