/* Electric Wager Theme - Custom Animations & Styling */

/* Glow Effects */
.glow-text {
  text-shadow: 0 0 1.25rem rgba(0, 212, 255, 0.8), 
               0 0 2.5rem rgba(0, 212, 255, 0.5);
}

.glow-btn {
  box-shadow: 0 0 1.25rem rgba(0, 212, 255, 0.4);
  transition: all 0.3s ease;
}

.glow-btn:hover {
  box-shadow: 0 0 2rem rgba(0, 212, 255, 0.8),
              0 0 3rem rgba(220, 20, 60, 0.5);
}

.glow-badge {
  box-shadow: 0 0 1.5rem rgba(0, 212, 255, 0.6),
              0 0 3rem rgba(220, 20, 60, 0.4);
}

/* Pulse Glow Animation */
@keyframes pulse-glow {
  0%, 100% {
    text-shadow: 0 0 1.25rem rgba(0, 212, 255, 0.8), 
                 0 0 2.5rem rgba(0, 212, 255, 0.5);
  }
  50% {
    text-shadow: 0 0 2rem rgba(0, 212, 255, 1), 
                 0 0 3.5rem rgba(0, 212, 255, 0.7),
                 0 0 5rem rgba(220, 20, 60, 0.5);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Hero Pattern Background */
.hero-pattern {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(220, 20, 60, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(0, 255, 255, 0.05) 0%, transparent 40%);
}

/* Bonus Badge Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.625rem);
  }
}

.bonus-badge {
  animation: float 3s ease-in-out infinite;
}

/* Marquee Animation */
.marquee-container {
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-content > * {
  flex-shrink: 0;
}

/* Duplicate items for seamless loop */
.marquee-content::after {
  content: '';
  display: flex;
  gap: 1.5rem;
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
  background-color: rgb(17 24 39);
}

.mobile-menu.active {
  max-height: 25rem;
  opacity: 1;
}

/* Burger Animation */
#burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.3125rem, 0.3125rem);
}

#burger.active span:nth-child(2) {
  opacity: 0;
}

#burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.4375rem, -0.4375rem);
}

/* Table Responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prose Styling for Markdown Content */
.prose-electric {
  color: #e5e7eb;
}

.prose-electric h2 {
  color: #00d4ff;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  text-shadow: 0 0 0.625rem rgba(0, 212, 255, 0.3);
}

.prose-electric h3 {
  color: #c0c0c0;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

.prose-electric h4 {
  color: #d1d5db;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
}

.prose-electric p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  line-height: 1.75;
  color: #d1d5db;
  text-align: justify;
}

.prose-electric strong {
  color: #00d4ff;
  font-weight: 600;
}

.prose-electric a {
  color: #00d4ff;
  text-decoration: underline;
  text-decoration-color: rgba(0, 212, 255, 0.3);
  transition: all 0.2s ease;
}

.prose-electric a:hover {
  color: #dc143c;
  text-decoration-color: #dc143c;
  text-shadow: 0 0 0.5rem rgba(220, 20, 60, 0.5);
}

.prose-electric ul,
.prose-electric ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose-electric ul {
  list-style-type: disc;
}

.prose-electric ol {
  list-style-type: decimal;
}

.prose-electric li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.75;
  color: #d1d5db;
}

.prose-electric li::marker {
  color: #00d4ff;
}

.prose-electric blockquote {
  border-left: 0.25rem solid #00d4ff;
  padding-left: 1em;
  margin: 1.6em 0;
  font-style: italic;
  color: #9ca3af;
  background-color: rgba(0, 212, 255, 0.05);
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  border-radius: 0 0.25rem 0.25rem 0;
}

.prose-electric table {
  width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  max-width: 100%;
}

@media (min-width: 48rem) {
  .prose-electric table {
    display: table;
  }
}

.prose-electric thead {
  background: linear-gradient(to right, rgba(0, 212, 255, 0.2), rgba(220, 20, 60, 0.2));
  border-bottom: 0.125rem solid #00d4ff;
}

.prose-electric th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #00d4ff;
  border: 0.0625rem solid rgba(0, 212, 255, 0.3);
  white-space: nowrap;
}

.prose-electric td {
  padding: 0.75rem 1rem;
  border: 0.0625rem solid rgba(156, 163, 175, 0.2);
  color: #d1d5db;
  white-space: nowrap;
}

.prose-electric tbody tr {
  background-color: rgba(17, 24, 39, 0.5);
  transition: background-color 0.2s ease;
}

.prose-electric tbody tr:hover {
  background-color: rgba(0, 212, 255, 0.1);
}

.prose-electric img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 2em;
  margin-bottom: 2em;
  border: 0.125rem solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 1.25rem rgba(0, 212, 255, 0.2);
}

.prose-electric code {
  background-color: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose-electric pre {
  background-color: rgba(17, 24, 39, 0.8);
  border: 0.0625rem solid rgba(0, 212, 255, 0.3);
  border-radius: 0.5rem;
  padding: 1em;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

.prose-electric pre code {
  background-color: transparent;
  padding: 0;
  color: #e5e7eb;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Responsive Utilities */
@media (max-width: 48rem) {
  .prose-electric h2 {
    font-size: 1.5rem;
  }
  
  .prose-electric h3 {
    font-size: 1.25rem;
  }
  
  .prose-electric p,
  .prose-electric li {
    font-size: 1rem;
  }
}

/* Parallax Effect */
@media (prefers-reduced-motion: no-preference) {
  .hero-pattern {
    background-attachment: fixed;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
a:focus,
button:focus,
details:focus {
  outline: 0.125rem solid #00d4ff;
  outline-offset: 0.125rem;
}
