/* BotSpins Digital Pulse North - Custom CSS */
/* Keyframes & Animations */

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.4), 0 0 40px rgba(0, 255, 200, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.6), 0 0 60px rgba(0, 255, 200, 0.3);
  }
}

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px) translateX(-5px);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-30px) translateX(5px);
    opacity: 0.4;
  }
}

@keyframes tilt-shake {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

@keyframes glow-line {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes neon-flicker {
  0%, 100% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  93% {
    opacity: 0.8;
  }
  94% {
    opacity: 1;
  }
  96% {
    opacity: 0.9;
  }
  97% {
    opacity: 1;
  }
}

@keyframes scan-line {
  0% {
    top: -10%;
  }
  100% {
    top: 110%;
  }
}

/* Animation Classes */
.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-particle {
  animation: particle-float 4s ease-in-out infinite;
}

.animate-tilt {
  animation: tilt-shake 3s ease-in-out infinite;
}

.animate-glow-line {
  background: linear-gradient(90deg, transparent, rgba(0, 255, 200, 0.6), transparent);
  background-size: 200% 100%;
  animation: glow-line 3s linear infinite;
}

.animate-fade-in {
  animation: fade-in-up 0.6s ease-out forwards;
}

.animate-neon {
  animation: neon-flicker 4s infinite;
}

/* Particle Container */
.particle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0, 255, 200, 0.7);
  border-radius: 50%;
  animation: particle-float 5s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 0.5s; }
.particle:nth-child(3) { left: 35%; top: 30%; animation-delay: 1s; }
.particle:nth-child(4) { left: 50%; top: 70%; animation-delay: 1.5s; }
.particle:nth-child(5) { left: 65%; top: 25%; animation-delay: 2s; }
.particle:nth-child(6) { left: 80%; top: 55%; animation-delay: 2.5s; }
.particle:nth-child(7) { left: 90%; top: 40%; animation-delay: 3s; }
.particle:nth-child(8) { left: 15%; top: 80%; animation-delay: 3.5s; }

/* Glow Effects */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #00ffc8, #00d4aa, #00ffc8);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.7;
  filter: blur(8px);
}

/* Scan Line Effect */
.scan-effect {
  position: relative;
  overflow: hidden;
}

.scan-effect::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 200, 0.5), transparent);
  animation: scan-line 4s linear infinite;
  pointer-events: none;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

/* Prose Styling for Markdown Content */
.prose {
  color: #e0f7f4;
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: #00ffc8;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid rgba(0, 255, 200, 0.3);
  text-shadow: 0 0 20px rgba(0, 255, 200, 0.4);
}

.prose h3 {
  color: #4dffd4;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose h4 {
  color: #80ffe0;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-bottom: 1.25em;
  color: #c8f0eb;
}

.prose a {
  color: #00ffc8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.prose a:hover {
  color: #4dffd4;
  text-shadow: 0 0 10px rgba(0, 255, 200, 0.5);
}

.prose strong {
  color: #ffffff;
  font-weight: 600;
}

.prose em {
  color: #b0e8e0;
  font-style: italic;
}

.prose ul {
  list-style-type: none;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.prose ul li {
  position: relative;
  margin-bottom: 0.5em;
  padding-left: 0.5em;
}

.prose ul li::before {
  content: '▸';
  position: absolute;
  left: -1em;
  color: #00ffc8;
  font-weight: bold;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.prose ol li {
  margin-bottom: 0.5em;
  padding-left: 0.5em;
}

.prose ol li::marker {
  color: #00ffc8;
  font-weight: 600;
}

.prose blockquote {
  border-left: 4px solid #00ffc8;
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: rgba(0, 255, 200, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #b0e8e0;
}

.prose blockquote p {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.prose thead {
  background: linear-gradient(135deg, rgba(0, 255, 200, 0.2), rgba(0, 212, 170, 0.15));
}

.prose th {
  color: #00ffc8;
  font-weight: 600;
  text-align: left;
  padding: 0.875em 1em;
  border-bottom: 2px solid rgba(0, 255, 200, 0.4);
  white-space: nowrap;
}

.prose td {
  padding: 0.875em 1em;
  border-bottom: 1px solid rgba(0, 255, 200, 0.15);
  color: #c8f0eb;
}

.prose tbody tr:hover {
  background: rgba(0, 255, 200, 0.05);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5em 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 200, 0.1);
}

.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 200, 0.5), transparent);
  margin: 2.5em 0;
}

.prose code {
  background: rgba(0, 255, 200, 0.1);
  color: #4dffd4;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.prose pre {
  background: rgba(0, 20, 16, 0.8);
  border: 1px solid rgba(0, 255, 200, 0.2);
  border-radius: 0.5rem;
  padding: 1em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
}

/* Card Hover Effects */
.card-glow {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 255, 200, 0.2), 0 0 40px rgba(0, 255, 200, 0.1);
}

/* CTA Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #00ffc8, #00d4aa);
  color: #001410;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-shadow: none;
  box-shadow: 0 4px 20px rgba(0, 255, 200, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4dffd4, #00ffc8);
  box-shadow: 0 6px 30px rgba(0, 255, 200, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #00ffc8;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border: 2px solid #00ffc8;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(0, 255, 200, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.3);
}

/* Mobile Menu Transitions */
.mobile-menu {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #001410;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ffc8, #00d4aa);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4dffd4, #00ffc8);
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #00ffc8;
  outline-offset: 2px;
}

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

/* Game Card Image Overlay */
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 20, 16, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

/* Step Badge Animation */
.step-badge {
  position: relative;
}

.step-badge::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 200, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Hero Pattern Overlay */
.hero-pattern {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 255, 200, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(0, 255, 200, 0.05) 0%, transparent 45%);
}

/* Grid Pattern Background */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(0, 255, 200, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 200, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* FAQ Accordion Styles */
.faq-item {
  border-bottom: 1px solid rgba(0, 255, 200, 0.15);
}

.faq-question {
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #00ffc8;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Provider Cloud */
.provider-tag {
  display: inline-block;
  padding: 0.5em 1em;
  background: rgba(0, 255, 200, 0.08);
  border: 1px solid rgba(0, 255, 200, 0.2);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: #b0e8e0;
  transition: all 0.2s ease;
}

.provider-tag:hover {
  background: rgba(0, 255, 200, 0.15);
  color: #00ffc8;
  transform: scale(1.05);
}
