/* Sakura Volt Custom Animations & Styling */

/* Keyframe Animations */
@keyframes sakura-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

@keyframes petal-drift {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  100% {
    transform: translateX(-100px) translateY(100vh) rotate(360deg);
  }
}

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

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

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

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

@keyframes spin-reel {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(360deg);
  }
}

/* Sakura Volt Color Palette */
:root {
  --sakura-pink: #ffb6c1;
  --sakura-deep: #ff69b4;
  --gold-light: #ffd700;
  --gold-dark: #daa520;
  --mist-white: #fff5f7;
  --petal-soft: #ffc0cb;
  --night-deep: #2d1b2e;
  --night-medium: #4a2c4d;
  --glow-accent: #ff1493;
}

/* Parallax Layers */
.parallax-layer {
  transition: transform 0.3s ease-out;
}

.parallax-slow {
  animation: parallax-float 8s ease-in-out infinite;
}

.parallax-medium {
  animation: parallax-float 6s ease-in-out infinite;
  animation-delay: -2s;
}

.parallax-fast {
  animation: parallax-float 4s ease-in-out infinite;
  animation-delay: -1s;
}

/* Marquee Animation */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* Sakura Petal Decorations */
.sakura-petal {
  position: absolute;
  width: 15px;
  height: 15px;
  background: linear-gradient(135deg, var(--sakura-pink) 0%, var(--petal-soft) 100%);
  border-radius: 50% 0 50% 0;
  opacity: 0.6;
  animation: petal-drift 15s linear infinite;
  pointer-events: none;
}

.sakura-petal:nth-child(2) {
  animation-delay: -3s;
  left: 20%;
}
.sakura-petal:nth-child(3) {
  animation-delay: -6s;
  left: 40%;
}
.sakura-petal:nth-child(4) {
  animation-delay: -9s;
  left: 60%;
}
.sakura-petal:nth-child(5) {
  animation-delay: -12s;
  left: 80%;
}

/* Glow Effects */
.glow-box {
  animation: glow-pulse 3s ease-in-out infinite;
}

.shimmer-effect {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.3) 50%, transparent 100%);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* Golden Frame Border */
.golden-frame {
  position: relative;
  border: 2px solid var(--gold-light);
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.2), 0 0 20px rgba(255, 215, 0, 0.3);
}

.golden-frame::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg, var(--gold-light), var(--gold-dark), var(--gold-light));
  border-radius: inherit;
  z-index: -1;
  opacity: 0.5;
}

/* Reel Spin Effect */
.reel-spin {
  animation: spin-reel 2s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* Prose Styling for Readability */
.prose {
  color: var(--night-deep);
  line-height: 1.7;
  font-size: 1.05rem;
  max-width: 100%;
}

/* Enhanced prose heading styles with better spacing and gradient effects */
.prose h2 {
  color: var(--night-deep);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--sakura-deep), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose h3 {
  color: var(--night-medium);
  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(--night-medium);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Improved paragraph and text styling with better readability */
.prose p {
  margin-bottom: 1.25em;
  color: var(--night-deep);
  max-width: 100%;
}

.prose p:first-of-type {
  font-size: 1.1em;
  line-height: 1.8;
}

.prose strong {
  color: var(--sakura-deep);
  font-weight: 600;
}

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

/* Enhanced list styling with better spacing and markers */
.prose ul,
.prose ol {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 0.5em;
}

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

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

.prose ul li::before {
  content: "🌸";
  position: absolute;
  left: 0;
  font-size: 0.9em;
}

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

.prose ol li {
  margin-bottom: 0.75em;
  color: var(--night-deep);
  padding-left: 0.5em;
}

/* Link styling with hover effects */
.prose a {
  color: var(--sakura-deep);
  text-decoration: underline;
  text-decoration-color: rgba(255, 105, 180, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.3s ease;
  font-weight: 500;
}

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

/* Responsive table styling with proper overflow handling */
.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95em;
  display: table;
}

.prose th {
  background: linear-gradient(135deg, var(--sakura-pink), var(--petal-soft));
  color: var(--night-deep);
  padding: 0.875em 1em;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--gold-light);
}

.prose td {
  padding: 0.875em 1em;
  border-bottom: 1px solid rgba(255, 182, 193, 0.3);
  color: var(--night-deep);
  vertical-align: top;
}

.prose tr:hover td {
  background-color: rgba(255, 245, 247, 0.5);
}

/* Blockquote styling with golden accent */
.prose blockquote {
  border-left: 4px solid var(--gold-light);
  padding: 1em 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: var(--night-medium);
  background: rgba(255, 245, 247, 0.5);
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin-bottom: 0.5em;
}

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

/* Image styling with responsive behavior */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em 0;
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
  display: block;
}

/* Code and pre styling */
.prose code {
  background: rgba(255, 182, 193, 0.15);
  color: var(--sakura-deep);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: monospace;
}

.prose pre {
  background: var(--night-deep);
  color: var(--mist-white);
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

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

/* Horizontal rule styling */
.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--sakura-pink),
    var(--gold-light),
    var(--sakura-pink),
    transparent
  );
  margin: 3em 0;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.1);
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  background: rgba(45, 27, 46, 0.95);
  backdrop-filter: blur(10px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--sakura-pink), var(--gold-light));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--sakura-deep), var(--gold-dark));
}

/* Bonus Badge Styling */
.bonus-badge {
  background: linear-gradient(135deg, var(--sakura-deep), var(--gold-dark));
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  animation: shimmer 4s infinite;
}

/* Step Number Badge */
.step-badge {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}

/* Game Card Hover */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(255, 105, 180, 0.3);
}

/* CTA Button Styles */
.cta-primary {
  background: linear-gradient(135deg, var(--sakura-deep), var(--glow-accent));
  box-shadow: 0 4px 20px rgba(255, 20, 147, 0.4);
  transition: all 0.3s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 20, 147, 0.6);
}

.cta-secondary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  box-shadow: 0 4px 20px rgba(218, 165, 32, 0.4);
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(218, 165, 32, 0.6);
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
    line-height: 1.65;
  }

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

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

  .prose ul,
  .prose ol {
    margin-left: 1em;
  }

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

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

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

  .prose th,
  .prose td {
    padding: 0.5em 0.625em;
  }
}
