/* All Animations */
/*
@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  41% { opacity: 1; }
  42% { opacity: 0.8; }
  43% { opacity: 1; }
  45% { opacity: 0.3; }
  46% { opacity: 1; }
}*/


/* Keyframes - Adjust the flicker animation */
@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; } /* Subtler flicker */
}


@keyframes dnaRotate {
  0% { transform: rotate(0deg) translateY(-50%); }
  100% { transform: rotate(360deg) translateY(-50%); }
}

/* @keyframes neonText {
  0%, 100% {
    text-shadow: 
      0 0 20px #ff4c88,
      0 0 40px #ff8a63,
      0 0 60px #770988;
  }
  50% {
    text-shadow: 
      0 0 40px #ff4c88,
      0 0 60px #ff8a63,
      0 0 80px #770988;
  }
} */

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 
      0 0 20px #fff,
      0 0 40px #ff4c88,
      0 0 60px #ff8a63;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
    box-shadow: 
      0 0 30px #fff,
      0 0 50px #ff4c88,
      0 0 70px #ff8a63;
  }
}

/* Base Styles */
.mega-wrapper {
  position: relative;
  width: 100%;
  padding: 40px 0;
  background: #1a1a2e;
  overflow: hidden;
}

/* Neon Bars */
.neon-bars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.neon-bar {
  position: absolute;
  width: 3px;
  height: 100%;
  background: #ff4c88;
  animation: neonFlicker 1.5s infinite;
  box-shadow: 
    0 0 20px #ff4c88,
    0 0 40px #ff4c88,
    0 0 60px #ff4c88;
}

.neon-bar:nth-child(1) { left: 5%; animation-delay: 0.1s; }
.neon-bar:nth-child(2) { right: 5%; animation-delay: 0.2s; }
.neon-bar:nth-child(3) { left: 15%; animation-delay: 0.3s; }
.neon-bar:nth-child(4) { right: 15%; animation-delay: 0.4s; }

/* Ticker Track */
.ticker-track {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  transform: translateX(0);
  will-change: transform; /* GPU acceleration */
  backface-visibility: hidden;
  perspective: 1000px;
}

/* DNA Background */
.dna-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  opacity: 0.3;
}

.helix {
  position: absolute;
  width: 2px;
  height: 200%;
  background: linear-gradient(to bottom,
    transparent 0%,
    #ff4c88 30%,
    #ff8a63 50%,
    #770988 70%,
    transparent 100%
  );
  animation: dnaRotate 20s linear infinite;
  top: 50%;
}

.helix-1 { left: 30%; animation-delay: -5s; }
.helix-2 { left: 50%; animation-delay: -10s; }
.helix-3 { left: 70%; animation-delay: -15s; }

/* Ticker Wrapper */
.ticker-wrapper {
  position: relative;
  width: 90%;
  margin: 0 auto;
  border-radius: 30px;
  padding: 16px;
  background: rgba(26, 26, 46, 0.95);
  box-shadow: 
    0 0 40px rgba(119, 9, 136, 0.5),
    0 0 80px rgba(255, 76, 136, 0.3),
    inset 0 0 60px rgba(255, 76, 136, 0.3);
  border: 8px solid transparent;
  border-image: linear-gradient(45deg, #ff4c88, #ff8a63) 1;
}

span .ticker-item {
  text-shadow: none !important; /* Disable neon effect in Chrome */
  animation: none !important;  /* Disable neon animation in Chrome */
}


/* Ticker Controls */
.ticker-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(45deg, 
    rgba(119, 9, 136, 0.9), 
    rgba(255, 76, 136, 0.9)
  );
  padding: 24px 40px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 0 40px rgba(255, 76, 136, 0.5);
}

.ticker-status {
  display: flex;
  align-items: center;
  gap: 20px;
}

.live-dot {
  width: 24px;
  height: 24px;
  background-color: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.status-text {
  color: white;
  font-size: 2.4rem;
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.ticker-pause {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.ticker-pause:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Ticker Content */
.ticker {
  position: relative;
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-item-container {
  display: flex;
  align-items: center;
  padding: 0 20px;
}

/* .ticker-item {
  font-size: 3.6rem;
  white-space: nowrap;
  font-weight: bold;
  color: #fff;
  text-shadow: 
    0 0 20px #ff4c88,
    0 0 40px #ff8a63,
    0 0 60px #770988;
  animation: neonText 2s infinite; }/* Retains animation */

/* Ticker Content */
.ticker-item {
  font-size: 3.6rem;
  white-space: nowrap;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 20px #ff4c88, 0 0 40px #ff8a63, 0 0 60px #770988; /* Default text-shadow */
  animation: none !important;
  /*animation: neonFlicker 1.5s infinite; /* Default flicker animation */
}

/* Correctly target Chrome */
.chrome .ticker-item { /* Remove text-shadow and animation in Chrome */
  text-shadow: none;
  animation: none !important;  
}


@keyframes chromeFlicker { /* If you want a Chrome-specific flicker */
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; } 
}

/* Progress Bar */
.ticker-progress {
  height: 12px;
  background: rgba(119, 9, 136, 0.1);
  border-radius: 6px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff4c88, #ff8a63, #770988);
  background-size: 200% 100%;
  animation: gradientMove 2s linear infinite;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(255, 76, 136, 0.5);
}

/* Media Queries for Small Screens */

/* For tablets and small desktops */
@media (max-width: 768px) {
  .mega-wrapper {
    padding: 20px 0;
  }

  .ticker-wrapper {
    width: 95%;
    padding: 8px;
    border-width: 4px;
  }

  .ticker {
    height: 100px;
  }

  .ticker-controls {
    padding: 12px 15px;
  }

  .live-dot {
    width: 12px;
    height: 12px;
  }

  .status-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .ticker-item {
    font-size: 1.4rem; /* Smaller font size for mobile */
  }

  .ticker-item-container {
    padding: 0 15px; /* Reduced padding */
    gap: 20px; /* Reduced gap */
  }

  .ticker-track {
    gap: 30px; /* Reduced gap between items */
  }

  .ticker-pause {
    font-size: 1.5rem;
    padding: 8px 12px;
  }

  .neon-bar {
    width: 2px;
  }
}

/* For very small devices (e.g., smartphones) */
@media (max-width: 480px) {
  .ticker {
    height: 80px;
  }

  .ticker-item {
    font-size: 1.2rem; /* Even smaller font size for very small screens */
  }

  .ticker-item-container {
    padding: 0 10px; /* Reduced padding */
  }

  .ticker-track {
    gap: 20px; /* Reduced gap between items */
  }

  .status-text {
    font-size: 1rem; /* Adjusted for smaller screens */
  }

  .neon-bars {
    display: none; /* Hide neon bars on very small screens */
  }
}