/* BotSpins Digital Pulse Lite - Custom Styles */

/* ===== Keyframe Animations ===== */
@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-1.5rem) translateX(0.5rem) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-2.5rem) translateX(-0.5rem) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-1rem) translateX(0.75rem) rotate(270deg);
    opacity: 0.7;
  }
}

@keyframes tilt-subtle {
  0%, 100% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
  }
  50% {
    transform: perspective(1000px) rotateX(-1deg) rotateY(2deg);
  }
  75% {
    transform: perspective(1000px) rotateX(1deg) rotateY(-1deg);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 1.25rem rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(99, 102, 241, 0.6);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes float-badge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.5rem);
  }
}

/* ===== Animation Classes ===== */
.particle {
  animation: particle-float 8s ease-in-out infinite;
}

.particle-delay-1 {
  animation-delay: -2s;
}

.particle-delay-2 {
  animation-delay: -4s;
}

.particle-delay-3 {
  animation-delay: -6s;
}

.tilt-card {
  animation: tilt-subtle 12s ease-in-out infinite;
  transform-style: preserve-3d;
}

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

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

.shimmer-bg {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

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

.particle-dot {
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background: rgba(99, 102, 241, 0.5);
  border-radius: 50%;
}

/* ===== Table Responsive Wrapper ===== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.table-responsive table {
  min-width: 100%;
}

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

.prose h2 {
  color: #f8fafc;
  font-size: 1.75em;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid rgba(99, 102, 241, 0.3);
  line-height: 1.3;
}

.prose h3 {
  color: #f1f5f9;
  font-size: 1.375em;
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: #e2e8f0;
  font-size: 1.125em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

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

.prose a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 0.125em;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #a5b4fc;
}

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

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

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: #cbd5e1;
  padding-left: 0.375em;
}

.prose li::marker {
  color: #6366f1;
}

.prose ol li::marker {
  color: #818cf8;
  font-weight: 600;
}

.prose blockquote {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding: 1em 1.5em;
  border-left: 4px solid #6366f1;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 0 0.5rem 0.5rem 0;
  color: #e2e8f0;
  font-style: italic;
}

.prose blockquote p {
  margin: 0;
}

.prose code {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.1);
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Fira Code', 'Consolas', monospace;
}

.prose pre {
  background: #1e293b;
  border-radius: 0.5rem;
  padding: 1em;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

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

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Prose Tables */
.prose .table-responsive {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375em;
}

.prose thead {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.prose thead th {
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 0.875em 1em;
  white-space: nowrap;
}

.prose tbody tr {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  transition: background 0.2s ease;
}

.prose tbody tr:nth-child(even) {
  background: #172033;
}

.prose tbody tr:hover {
  background: rgba(99, 102, 241, 0.15);
}

.prose tbody td {
  padding: 0.875em 1em;
  color: #cbd5e1;
}

.prose tbody td:first-child {
  font-weight: 500;
  color: #e2e8f0;
}

/* ===== Button Overrides ===== */
.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #e2e8f0;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  border: 2px solid #6366f1;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: #818cf8;
}

/* ===== Card Styles ===== */
.game-card {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.game-card:hover {
  transform: translateY(-0.5rem);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.promo-card {
  background: linear-gradient(145deg, #1e293b 0%, #172033 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.15);
  transition: all 0.3s ease;
}

.promo-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Hero Background Pattern ===== */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== Step Badge ===== */
.step-badge {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  flex-shrink: 0;
}

/* ===== Section Divider ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

/* ===== Provider Tag ===== */
.provider-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 2rem;
  color: #a5b4fc;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.provider-tag:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

/* ===== Responsive Utilities ===== */
@media (max-width: 640px) {
  .prose h2 {
    font-size: 1.5em;
  }
  
  .prose h3 {
    font-size: 1.25em;
  }
  
  .prose table {
    font-size: 0.875em;
  }
  
  .prose thead th,
  .prose tbody td {
    padding: 0.625em 0.75em;
  }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

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

/* ===== Selection Color ===== */
::selection {
  background: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}
