/* StromStrike Pulse - Custom CSS */
/* ================================ */

/* CSS Variables */
:root {
  --storm-primary: #6366f1;
  --storm-secondary: #8b5cf6;
  --storm-accent: #22d3ee;
  --storm-dark: #0f0f1a;
  --storm-darker: #080810;
  --storm-light: #e0e7ff;
  --storm-gold: #fbbf24;
  --storm-success: #10b981;
  --storm-warning: #f59e0b;
  --gradient-lightning: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #22d3ee 100%);
}

/* Keyframe Animations */
@keyframes tilt {
  0%, 100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6), 0 0 60px rgba(139, 92, 246, 0.4);
  }
}

@keyframes lightning-flash {
  0%, 90%, 100% {
    opacity: 0;
  }
  92%, 98% {
    opacity: 0.1;
  }
  95% {
    opacity: 0.3;
  }
}

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

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

@keyframes electric-border {
  0%, 100% {
    border-color: var(--storm-primary);
  }
  50% {
    border-color: var(--storm-accent);
  }
}

/* Animation Classes */
.animate-tilt {
  animation: tilt 3s ease-in-out infinite;
}

.animate-marquee {
  animation: marquee 20s linear infinite;
}

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

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-electric-border {
  animation: electric-border 1.5s ease-in-out infinite;
}

/* Lightning Background Pattern */
.lightning-bg {
  position: relative;
  overflow: hidden;
}

.lightning-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
  pointer-events: none;
  animation: lightning-flash 8s infinite;
}

/* SVG Lightning Pattern */
.svg-lightning-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L25 25 L35 25 L20 55 L30 30 L20 30 Z' fill='none' stroke='%236366f1' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
  background-size: 3.75rem 3.75rem;
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-lightning);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button Styles */
.btn-primary {
  background: var(--gradient-lightning);
  color: #ffffff;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.625rem 2.5rem rgba(99, 102, 241, 0.4);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-secondary {
  background: transparent;
  color: var(--storm-light);
  padding: 0.875rem 2rem;
  border: 0.125rem solid var(--storm-primary);
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--storm-primary);
  color: #ffffff;
  border-color: var(--storm-primary);
}

/* Card Styles */
.storm-card {
  background: linear-gradient(145deg, rgba(15, 15, 26, 0.9), rgba(8, 8, 16, 0.95));
  border: 0.0625rem solid rgba(99, 102, 241, 0.2);
  border-radius: 1rem;
  backdrop-filter: blur(0.625rem);
  transition: all 0.3s ease;
}

.storm-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-0.25rem);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.3), 0 0 1.875rem rgba(99, 102, 241, 0.1);
}

/* Bonus Badge */
.bonus-badge {
  background: linear-gradient(135deg, var(--storm-gold), #f59e0b);
  color: var(--storm-darker);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
}

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

/* Navigation Styles */
.nav-link {
  color: var(--storm-light);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--storm-accent);
  background: rgba(99, 102, 241, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0.125rem;
  background: var(--gradient-lightning);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Mobile Menu */
.mobile-menu {
  background: var(--storm-darker);
  backdrop-filter: blur(1.25rem);
}

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

::-webkit-scrollbar-track {
  background: var(--storm-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--storm-primary);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--storm-secondary);
}

/* ================================ */
/* PROSE STYLING FOR READABILITY   */
/* ================================ */

.prose {
  color: var(--storm-light);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.125rem solid rgba(99, 102, 241, 0.3);
  position: relative;
}

.prose h2::before {
  content: '';
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  width: 4rem;
  height: 0.125rem;
  background: var(--gradient-lightning);
}

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

.prose h4 {
  color: var(--storm-accent);
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: rgba(224, 231, 255, 0.9);
}

.prose a {
  color: var(--storm-accent);
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: var(--storm-primary);
}

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

.prose em {
  color: var(--storm-accent);
  font-style: italic;
}

/* Prose Lists */
.prose ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
  color: rgba(224, 231, 255, 0.9);
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--storm-accent);
  border-radius: 50%;
  box-shadow: 0 0 0.375rem var(--storm-accent);
}

.prose ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  counter-reset: prose-counter;
}

.prose ol li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
  counter-increment: prose-counter;
  color: rgba(224, 231, 255, 0.9);
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--gradient-lightning);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #ffffff;
}

/* Prose Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.prose thead {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2));
}

.prose th {
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  border-bottom: 0.125rem solid var(--storm-primary);
  white-space: nowrap;
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid rgba(99, 102, 241, 0.15);
  color: rgba(224, 231, 255, 0.9);
}

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

.prose tbody tr:nth-child(even) {
  background: rgba(99, 102, 241, 0.03);
}

/* Prose Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid var(--storm-primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: rgba(224, 231, 255, 0.95);
}

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

/* Prose Code */
.prose code {
  background: rgba(99, 102, 241, 0.2);
  color: var(--storm-accent);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background: var(--storm-darker);
  border: 0.0625rem solid rgba(99, 102, 241, 0.2);
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

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

/* Prose Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  border: 0.0625rem solid rgba(99, 102, 241, 0.2);
}

/* Prose HR */
.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, var(--storm-primary), transparent);
  margin: 2.5rem 0;
}

/* Step Badge */
.step-badge {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--gradient-lightning);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 0 1.25rem rgba(99, 102, 241, 0.4);
}

/* Game Card */
.game-card {
  min-width: 15rem;
  max-width: 15rem;
  flex-shrink: 0;
}

.game-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.75rem 0.75rem 0 0;
}

/* Promo Card */
.promo-card {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.1), rgba(8, 8, 16, 0.9));
  border: 0.0625rem solid rgba(99, 102, 241, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.promo-card:hover {
  border-color: var(--storm-accent);
  transform: scale(1.02);
}

/* FAQ Accordion */
.faq-item {
  border: 0.0625rem solid rgba(99, 102, 241, 0.2);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: rgba(15, 15, 26, 0.6);
}

.faq-question {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  font-weight: 600;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(99, 102, 241, 0.1);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: rgba(224, 231, 255, 0.85);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* Provider Cloud */
.provider-tag {
  background: rgba(99, 102, 241, 0.15);
  border: 0.0625rem solid rgba(99, 102, 241, 0.3);
  color: var(--storm-light);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: var(--storm-primary);
  color: #ffffff;
}

/* 18+ Badge */
.age-badge {
  width: 2.5rem;
  height: 2.5rem;
  border: 0.125rem solid var(--storm-warning);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--storm-warning);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(8, 8, 16, 0.7) 0%, rgba(8, 8, 16, 0.9) 100%);
}

/* Section Styling */
.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: rgba(224, 231, 255, 0.7);
  font-size: 1.125rem;
}

/* Utility Classes */
.text-balance {
  text-wrap: balance;
}

/* Focus States for Accessibility */
a:focus,
button:focus {
  outline: 0.125rem solid var(--storm-accent);
  outline-offset: 0.125rem;
}

/* Selection */
::selection {
  background: var(--storm-primary);
  color: #ffffff;
}

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

/* Container */
.container-main {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-main {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-main {
    padding: 0 2rem;
  }
}
