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

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --primary: #ff3d00;
  --primary-glow: #ff6b3d;
  --secondary: #00e5ff;
  --secondary-glow: #4df0ff;
  --accent: #ffea00;
  --dark-bg: #0a0a12;
  --dark-surface: #12121f;
  --dark-card: #1a1a2e;
  --text-light: #f0f0f5;
  --text-muted: #a0a0b0;
  --gradient-tornado: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  --gradient-neon: linear-gradient(90deg, var(--primary-glow) 0%, var(--secondary-glow) 100%);
}

/* =============================================
   KEYFRAME ANIMATIONS
   ============================================= */
@keyframes tornado-spin {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: rotate(180deg) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.8;
  }
}

@keyframes swirl-pulse {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    filter: blur(0px);
  }
  25% {
    transform: translateY(-10px) rotate(90deg);
    filter: blur(1px);
  }
  50% {
    transform: translateY(-5px) rotate(180deg);
    filter: blur(0px);
  }
  75% {
    transform: translateY(-15px) rotate(270deg);
    filter: blur(1px);
  }
}

@keyframes neon-trail {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 20px var(--primary-glow);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 40px var(--secondary-glow);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 20px var(--primary-glow);
  }
}

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-30px) translateX(15px) scale(1.2);
    opacity: 1;
  }
  50% {
    transform: translateY(-20px) translateX(-10px) scale(0.9);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-40px) translateX(20px) scale(1.1);
    opacity: 0.9;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary-glow);
  }
  50% {
    box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary-glow), 0 0 60px var(--secondary);
  }
}

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

@keyframes bounce-subtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

@keyframes parallax-drift {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(-50px) translateX(20px);
  }
}

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

/* =============================================
   ANIMATION UTILITY CLASSES
   ============================================= */
.animate-tornado {
  animation: tornado-spin 8s linear infinite;
}

.animate-swirl {
  animation: swirl-pulse 6s ease-in-out infinite;
}

.animate-neon {
  background-size: 200% 200%;
  animation: neon-trail 4s ease infinite;
}

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

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

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

.animate-bounce {
  animation: bounce-subtle 2s ease-in-out infinite;
}

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

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

/* =============================================
   PARTICLE SYSTEM
   ============================================= */
.particle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.particle-1 {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  top: 20%;
  left: 10%;
  animation: float-particle 7s ease-in-out infinite;
}

.particle-2 {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--secondary);
  top: 40%;
  left: 80%;
  animation: float-particle 5s ease-in-out infinite 1s;
}

.particle-3 {
  width: 0.625rem;
  height: 0.625rem;
  background: var(--accent);
  top: 60%;
  left: 25%;
  animation: float-particle 6s ease-in-out infinite 0.5s;
}

.particle-4 {
  width: 0.25rem;
  height: 0.25rem;
  background: var(--primary-glow);
  top: 30%;
  left: 60%;
  animation: float-particle 8s ease-in-out infinite 2s;
}

.particle-5 {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--secondary-glow);
  top: 70%;
  left: 70%;
  animation: float-particle 6s ease-in-out infinite 1.5s;
}

.particle-6 {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--accent);
  top: 15%;
  left: 45%;
  animation: float-particle 9s ease-in-out infinite 0.8s;
}

/* =============================================
   PARALLAX LAYERS
   ============================================= */
.parallax-wrapper {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.parallax-layer-1 {
  transform: translateZ(-2px) scale(3);
}

.parallax-layer-2 {
  transform: translateZ(-1px) scale(2);
}

.parallax-content {
  position: relative;
  z-index: 10;
}

/* =============================================
   SWIRL SVG PATTERNS
   ============================================= */
.swirl-pattern {
  position: absolute;
  opacity: 0.15;
  pointer-events: none;
}

.swirl-pattern-1 {
  top: -10%;
  right: -10%;
  width: 50%;
  height: auto;
  animation: tornado-spin 20s linear infinite;
}

.swirl-pattern-2 {
  bottom: -15%;
  left: -10%;
  width: 40%;
  height: auto;
  animation: tornado-spin 25s linear infinite reverse;
}

/* =============================================
   BUTTON STYLES
   ============================================= */
.btn-primary {
  background: var(--gradient-tornado);
  background-size: 200% 200%;
  color: var(--dark-bg);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  animation: gradient-shift 4s ease infinite;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 61, 0, 0.4);
}

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

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--dark-bg);
  box-shadow: 0 0 20px var(--secondary-glow);
}

/* =============================================
   CARD STYLES
   ============================================= */
.card-glow {
  background: var(--dark-card);
  border: 1px solid rgba(255, 61, 0, 0.2);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.card-glow:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(255, 61, 0, 0.2);
  transform: translateY(-5px);
}

/* =============================================
   NAVIGATION OVERRIDES
   ============================================= */
.nav-link {
  position: relative;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-neon);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary);
}

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

/* =============================================
   BONUS BADGE
   ============================================= */
.bonus-badge {
  background: linear-gradient(135deg, var(--dark-card) 0%, rgba(255, 61, 0, 0.1) 100%);
  border: 2px solid var(--primary);
  border-radius: 1.5rem;
  padding: 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 61, 0, 0.1) 50%, transparent 60%);
  animation: shimmer 3s infinite;
}

/* =============================================
   GAME CARD
   ============================================= */
.game-card {
  background: var(--dark-card);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid transparent;
}

.game-card:hover {
  border-color: var(--secondary);
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 229, 255, 0.15);
}

.game-card img {
  transition: transform 0.4s ease;
}

.game-card:hover img {
  transform: scale(1.1);
}

/* =============================================
   STEP BADGES
   ============================================= */
.step-badge {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-tornado);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-bg);
  animation: glow-pulse 3s ease-in-out infinite;
}

/* =============================================
   TABLE STYLES
   ============================================= */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--dark-card);
  border-radius: 0.75rem;
  overflow: hidden;
}

.styled-table thead {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.styled-table thead th {
  color: var(--dark-bg);
  font-weight: 700;
  padding: 1rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}

.styled-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.styled-table tbody tr:hover {
  background: rgba(255, 61, 0, 0.05);
}

.styled-table tbody td {
  padding: 1rem 1.25rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-item {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary);
}

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

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
}

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

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

/* =============================================
   PROVIDER CLOUD
   ============================================= */
.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.provider-tag {
  background: var(--dark-surface);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.provider-tag:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

/* =============================================
   PROMO CARDS
   ============================================= */
.promo-card {
  background: linear-gradient(145deg, var(--dark-card) 0%, var(--dark-surface) 100%);
  border: 1px solid rgba(255, 61, 0, 0.15);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
}

.promo-card:hover {
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(255, 234, 0, 0.1);
}

/* =============================================
   FOOTER STYLES
   ============================================= */
.footer-link {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--secondary);
}

.badge-18 {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-light);
}

/* =============================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ============================================= */
.prose {
  color: var(--text-light);
  line-height: 1.8;
  max-width: 100%;
}

.prose h2 {
  color: var(--text-light);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
  position: relative;
}

.prose h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 4rem;
  height: 2px;
  background: var(--secondary);
}

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

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

.prose p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  font-size: clamp(1rem, 2vw, 1.0625rem);
}

.prose a {
  color: var(--secondary);
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 255, 0.3);
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

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

.prose strong {
  color: var(--text-light);
  font-weight: 700;
}

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

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

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

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

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

.prose ol li {
  counter-increment: list-counter;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

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

.prose blockquote {
  background: linear-gradient(90deg, rgba(255, 61, 0, 0.1) 0%, transparent 100%);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 0;
}

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

.prose thead {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.prose thead th {
  color: var(--dark-bg);
  font-weight: 700;
  padding: 1rem;
  text-align: left;
}

.prose tbody tr {
  background: var(--dark-card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prose tbody tr:nth-child(even) {
  background: var(--dark-surface);
}

.prose tbody td {
  padding: 1rem;
  color: var(--text-light);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  margin: 2.5rem 0;
}

.prose code {
  background: var(--dark-surface);
  color: var(--secondary);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.prose pre {
  background: var(--dark-surface);
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* =============================================
   MOBILE MENU STYLES
   ============================================= */
.mobile-menu {
  background: var(--dark-bg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-overlay {
  background: rgba(10, 10, 18, 0.95);
}

/* =============================================
   HERO SECTION STYLES
   ============================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 18, 0.7) 0%, rgba(10, 10, 18, 0.9) 100%);
}

/* =============================================
   SCROLLBAR STYLING
   ============================================= */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

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

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

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

/* =============================================
   RESPONSIVE UTILITIES
   ============================================= */
@media (max-width: 768px) {
  .bonus-badge {
    padding: 1.5rem;
  }
  
  .step-badge {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
  
  .prose h2 {
    margin-top: 2rem;
  }
  
  .prose h3 {
    margin-top: 1.5rem;
  }
}

/* =============================================
   SMOOTH SCROLL
   ============================================= */
html {
  scroll-behavior: smooth;
}

/* =============================================
   SELECTION STYLING
   ============================================= */
::selection {
  background: var(--primary);
  color: var(--text-light);
}
