/* ============================================
   Caspero Blaze Theme - Custom Styles
   ============================================ */

/* --- Particle & Glow Animations --- */

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.4), 0 0 40px rgba(245, 158, 11, 0.15); }
  50% { box-shadow: 0 0 45px rgba(239, 68, 68, 0.7), 0 0 80px rgba(245, 158, 11, 0.35); }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

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

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

.animate-shimmer {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

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

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

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

/* --- Parallax Utility --- */

.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* --- CTA Button Glow --- */

.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ef4444, #f59e0b, #f97316, #ef4444);
  border-radius: inherit;
  z-index: -1;
  background-size: 300% 300%;
  animation: shimmer 4s linear infinite;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 50px rgba(239, 68, 68, 0.5), 0 4px 20px rgba(245, 158, 11, 0.3);
}

/* --- Table Responsive Wrapper --- */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  min-width: 500px;
}

/* --- Prose Typography --- */

.prose {
  color: #d1d5db;
  line-height: 1.8;
  font-size: 1rem;
}

.prose h2 {
  color: #fecaca;
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose h3 {
  color: #fca5a5;
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose h4 {
  color: #fca5a5;
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose a {
  color: #ef4444;
  text-decoration: underline;
  text-decoration-color: rgba(239, 68, 68, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.prose a:hover {
  color: #f87171;
  text-decoration-color: #f87171;
}

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

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5em;
}

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

.prose ol {
  list-style-type: decimal;
}

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

.prose li::marker {
  color: #ef4444;
}

.prose blockquote {
  border-left: 4px solid #ef4444;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 0 0.5rem 0.5rem 0;
  color: #d1d5db;
  font-style: italic;
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

/* --- Prose Tables --- */

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.prose thead {
  background: rgba(239, 68, 68, 0.15);
}

.prose th {
  color: #fecaca;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid rgba(239, 68, 68, 0.3);
  white-space: nowrap;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d5db;
}

.prose tbody tr:hover {
  background: rgba(239, 68, 68, 0.05);
}

.prose hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* --- Responsive Tables Inside Prose --- */

.prose .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.prose .table-responsive table {
  margin: 0;
}

/* --- FAQ Accordion --- */

.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  display: inline-block;
  margin-right: 0.75rem;
  transition: transform 0.3s ease;
  color: #ef4444;
  font-size: 0.75rem;
}

.faq-item[open] summary::before {
  transform: rotate(180deg);
}

.faq-item[open] .faq-answer {
  animation: fadeInUp 0.3s ease-out;
}

/* --- Game Card Hover --- */

.game-card {
  transition: box-shadow 0.3s ease;
}

.game-card:hover {
  box-shadow: 0 20px 50px rgba(239, 68, 68, 0.35), 0 8px 20px rgba(245, 158, 11, 0.15);
}

/* --- Step Badge --- */

.step-badge {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.5), 0 0 10px rgba(245, 158, 11, 0.3);
}

/* --- Provider Tag Cloud --- */

.provider-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.provider-tag:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.5);
}

/* --- Promo Card --- */

.promo-card {
  background: linear-gradient(135deg, rgba(28, 10, 10, 0.85), rgba(26, 8, 8, 0.85));
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.promo-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.2), 0 4px 15px rgba(245, 158, 11, 0.1);
  transform: translateY(-4px);
}

/* --- Scrollbar Styling --- */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #ef4444;
  border-radius: 4px;
}

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

/* --- Mobile Menu Transitions --- */

#mobile-menu {
  will-change: transform;
}
