/* ================================================
   Rumwave Horizon Theme - Custom Styles
   Sunlit tropical gradients, aqua-gold layers
   ================================================ */

/* ===== Keyframe Animations ===== */

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
  }
}

@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 particle-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.8;
  }
  25% {
    transform: translate(10px, -15px) rotate(90deg);
    opacity: 0.6;
  }
  50% {
    transform: translate(-5px, -30px) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: translate(-15px, -15px) rotate(270deg);
    opacity: 0.6;
  }
}

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

/* ===== Utility Classes ===== */

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

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

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

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

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(0, 255, 234, 0.8), transparent);
  border-radius: 50%;
  pointer-events: none;
  animation: particle-float 6s infinite ease-in-out;
}

.parallax-layer {
  transform: translateZ(0);
  will-change: transform;
}

/* ===== Gradient Backgrounds ===== */

.bg-rumwave-gradient {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 25%, #00ffea 50%, #0099cc 75%, #ff6b9d 100%);
}

.bg-rumwave-hero {
  background: linear-gradient(
    180deg,
    rgba(0, 255, 234, 0.15) 0%,
    rgba(255, 215, 0, 0.1) 50%,
    rgba(255, 165, 0, 0.08) 100%
  );
}

.bg-tropical-overlay {
  background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.15), transparent 70%),
    radial-gradient(circle at bottom left, rgba(0, 255, 234, 0.15), transparent 70%);
}

/* ===== Table Responsive Wrapper ===== */

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

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(0, 255, 234, 0.1);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #00ffea, #ffd700);
  border-radius: 4px;
}

/* ===== Prose Styling ===== */

.prose {
  color: #1a1a2e;
  max-width: 100%;
  line-height: 1.7;
}

.prose h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.75em;
  color: #0099cc;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  color: #00796b;
  line-height: 1.4;
}

.prose h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.4em;
  margin-bottom: 0.5em;
  color: #006064;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.25em;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

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

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

.prose ul,
.prose ol {
  margin-top: 1em;
  margin-bottom: 1.5em;
  padding-left: 1.75em;
}

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.65;
}

.prose li::marker {
  color: #00ffea;
}

.prose a {
  color: #0099cc;
  text-decoration: underline;
  text-decoration-color: rgba(0, 153, 204, 0.3);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #00796b;
  text-decoration-color: rgba(0, 121, 107, 0.6);
}

.prose blockquote {
  border-left: 4px solid #00ffea;
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #37474f;
  background: rgba(0, 255, 234, 0.05);
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0 8px 8px 0;
}

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

.prose thead {
  background: linear-gradient(135deg, #00ffea, #0099cc);
  color: #ffffff;
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #00796b;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 153, 204, 0.15);
}

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

.prose tr:hover {
  background: rgba(0, 255, 234, 0.08);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5em 0;
  box-shadow: 0 8px 24px rgba(0, 153, 204, 0.2);
}

.prose code {
  background: rgba(0, 255, 234, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #00796b;
  font-family: "Courier New", monospace;
}

.prose pre {
  background: #1a1a2e;
  color: #00ffea;
  padding: 1.25em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.prose hr {
  border: none;
  border-top: 2px solid rgba(0, 255, 234, 0.3);
  margin: 2.5em 0;
}

/* ===== Smooth Scroll ===== */

html {
  scroll-behavior: smooth;
}

/* ===== Mobile Optimizations ===== */

@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }

  .prose h2 {
    margin-top: 1.5em;
  }

  .prose h3 {
    margin-top: 1.25em;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.25em;
  }

  .prose table {
    font-size: 0.875rem;
  }

  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
  }
}

/* ===== Bonus Badge Glow ===== */

.bonus-badge {
  position: relative;
  z-index: 1;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, #ffd700, #00ffea, #ff6b9d, #ffd700);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.6;
  filter: blur(15px);
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ===== Game Card Hover Effects ===== */

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

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 255, 234, 0.3);
}

/* ===== CTA Button Styles ===== */

.cta-primary {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #1a1a2e;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-primary:hover::before {
  left: 100%;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.cta-secondary {
  background: linear-gradient(135deg, #00ffea, #0099cc);
  color: #ffffff;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: linear-gradient(135deg, #0099cc, #00796b);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 234, 0.4);
}

/* ===== Navigation Styles ===== */

.nav-backdrop {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 153, 204, 0.1);
}

@media (max-width: 1023px) {
  .mobile-menu-bg {
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
  }
}

/* ===== Footer Gradient ===== */

.footer-gradient {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
