/* ============================================
   TORNADOBOOMS - Custom CSS
   Tornado Booms Dynamic North Theme
   ============================================ */

/* === CSS Variables === */
:root {
  --primary: #00f5d4;
  --primary-dark: #00c4a7;
  --secondary: #f72585;
  --accent: #7209b7;
  --accent-light: #9d4edd;
  --dark: #0a0a1a;
  --darker: #050510;
  --card-bg: rgba(20, 20, 45, 0.85);
  --card-border: rgba(0, 245, 212, 0.2);
  --text-light: #e8e8f0;
  --text-muted: #a0a0b8;
  --gradient-neon: linear-gradient(135deg, #00f5d4 0%, #7209b7 50%, #f72585 100%);
  --gradient-burst: linear-gradient(45deg, #f72585, #7209b7, #00f5d4);
}

/* === Keyframe Animations === */
@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-30px) translateX(10px) scale(1.1);
    opacity: 1;
  }
  50% {
    transform: translateY(-50px) translateX(-10px) scale(0.9);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-20px) translateX(15px) scale(1.05);
    opacity: 0.9;
  }
}

@keyframes tiltWobble {
  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 whirlwind {
  0% {
    transform: rotate(0deg) scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
    filter: hue-rotate(30deg);
  }
  100% {
    transform: rotate(360deg) scale(1);
    filter: hue-rotate(0deg);
  }
}

@keyframes gradientBurst {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 20px var(--primary);
  }
  50% {
    box-shadow: 0 0 10px var(--primary), 0 0 25px var(--primary), 0 0 40px var(--primary);
  }
}

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

@keyframes floatUp {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* === Animation Classes === */
.particle-effect {
  animation: particleFloat 6s ease-in-out infinite;
}

.particle-effect-delayed {
  animation: particleFloat 6s ease-in-out infinite 2s;
}

.tilt-effect {
  animation: tiltWobble 8s ease-in-out infinite;
}

.whirlwind-effect {
  animation: whirlwind 20s linear infinite;
}

.gradient-burst {
  background: var(--gradient-burst);
  background-size: 300% 300%;
  animation: gradientBurst 4s ease infinite;
}

.neon-glow {
  animation: neonPulse 2s ease-in-out infinite;
}

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

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

/* === Particle System === */
.particle {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
}

.particle:nth-child(1) { animation: particleFloat 5s infinite 0s; left: 10%; top: 20%; }
.particle:nth-child(2) { animation: particleFloat 7s infinite 1s; left: 25%; top: 60%; background: var(--secondary); }
.particle:nth-child(3) { animation: particleFloat 6s infinite 2s; left: 45%; top: 30%; background: var(--accent); }
.particle:nth-child(4) { animation: particleFloat 8s infinite 0.5s; left: 65%; top: 70%; }
.particle:nth-child(5) { animation: particleFloat 5.5s infinite 1.5s; left: 80%; top: 40%; background: var(--secondary); }
.particle:nth-child(6) { animation: particleFloat 7.5s infinite 2.5s; left: 90%; top: 15%; background: var(--accent); }

/* === Button Styles === */
.btn-primary {
  background: var(--gradient-neon);
  background-size: 200% 200%;
  color: var(--dark);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  animation: gradientBurst 2s ease infinite;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 245, 212, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--dark);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.4);
}

/* === Card Styles === */
.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 245, 212, 0.15);
}

.promo-card {
  background: linear-gradient(145deg, var(--card-bg), rgba(114, 9, 183, 0.2));
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.promo-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 15px 35px rgba(247, 37, 133, 0.2);
}

/* === Bonus Badge === */
.bonus-badge {
  background: linear-gradient(135deg, rgba(247, 37, 133, 0.9), rgba(114, 9, 183, 0.9));
  border: 2px solid var(--primary);
  border-radius: 1.5rem;
  padding: 2rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 245, 212, 0.2);
}

/* === Table Responsive === */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
}

.table-responsive table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-light);
}

.table-responsive th {
  background: rgba(114, 9, 183, 0.3);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.table-responsive tr:nth-child(even) {
  background: rgba(0, 245, 212, 0.03);
}

.table-responsive tr:hover {
  background: rgba(0, 245, 212, 0.08);
}

/* === Navigation === */
.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(0, 245, 212, 0.1);
}

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

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

/* === Mobile Menu === */
.mobile-menu {
  background: var(--darker);
  border-top: 1px solid var(--card-border);
}

/* === Step Badge === */
.step-badge {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--gradient-neon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.4);
}

/* === Provider Cloud === */
.provider-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(114, 9, 183, 0.2);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 0.25rem;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

/* === FAQ Accordion === */
.faq-item {
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--card-bg);
}

.faq-question {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  font-weight: 600;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(0, 245, 212, 0.05);
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  padding: 0 1.25rem 1.25rem;
  max-height: 500px;
}

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

/* === Swirl Background Pattern === */
.swirl-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.swirl-pattern::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(114, 9, 183, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(0, 245, 212, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(247, 37, 133, 0.08) 0%, transparent 60%);
  animation: whirlwind 30s linear infinite;
}

/* === 18+ Badge === */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--secondary);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  border: 2px solid white;
}

/* ============================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ============================================ */

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

.prose > * + * {
  margin-top: 1.5em;
}

/* Headings */
.prose h2 {
  color: var(--primary);
  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 var(--card-border);
  line-height: 1.3;
}

.prose h3 {
  color: var(--text-light);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: var(--accent-light);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.25em;
  color: var(--text-light);
  line-height: 1.8;
}

/* Links */
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.3s ease;
}

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

/* Lists */
.prose ul,
.prose ol {
  padding-left: 1.5em;
  margin: 1.5em 0;
}

.prose ul {
  list-style-type: none;
}

.prose ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.75em;
  color: var(--text-light);
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5em;
  height: 0.5em;
  background: var(--primary);
  border-radius: 50%;
}

.prose ol {
  list-style-type: decimal;
  color: var(--text-light);
}

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

.prose ol li::marker {
  color: var(--primary);
  font-weight: 600;
}

/* Tables */
.prose .table-responsive {
  margin: 2em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.prose table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}

.prose th {
  background: rgba(114, 9, 183, 0.3);
  color: var(--primary);
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.prose td {
  padding: 1rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-light);
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tr:nth-child(even) {
  background: rgba(0, 245, 212, 0.03);
}

/* Blockquotes */
.prose blockquote {
  border-left: 4px solid var(--primary);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: rgba(0, 245, 212, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--text-light);
}

.prose blockquote p {
  margin: 0;
}

/* Code */
.prose code {
  background: rgba(114, 9, 183, 0.2);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: var(--primary);
}

.prose pre {
  background: var(--darker);
  padding: 1.5em;
  border-radius: 0.75rem;
  overflow-x: auto;
  border: 1px solid var(--card-border);
}

.prose pre code {
  background: none;
  padding: 0;
  color: var(--text-light);
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em 0;
  border: 1px solid var(--card-border);
}

/* Horizontal Rule */
.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 3em 0;
}

/* Strong and Emphasis */
.prose strong {
  color: var(--primary);
  font-weight: 600;
}

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

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

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

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

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

/* === Utility Classes === */
.text-gradient {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-glow {
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.3), inset 0 0 15px rgba(0, 245, 212, 0.1);
}

/* === Disclaimer Text === */
.disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

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

/* === Selection Color === */
::selection {
  background: var(--primary);
  color: var(--dark);
}
