/* Custom animations and overrides */
@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes tiltHover {
  0% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
  }
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 1;
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
    opacity: 0.8;
  }
}

/* Obsidian theme colors and gradients */
:root {
  --obsidian-black: #0a0a0a;
  --obsidian-dark: #1a1a1a;
  --obsidian-slate: #2a2a2a;
  --gunmetal: #3a3a3a;
  --onyx-gradient: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 50%, #1a1a1a 100%);
  --accent-gold: #d4af37;
  --accent-silver: #c0c0c0;
}

/* Parallax animation class */
.parallax-float {
  animation: parallaxFloat 6s ease-in-out infinite;
}

/* Marquee animation class */
.marquee-scroll {
  animation: marqueeScroll 20s linear infinite;
}

/* Tilt hover effect */
.tilt-hover:hover {
  animation: tiltHover 0.3s ease-out forwards;
}

/* Particle animation */
.particle-float {
  animation: particleFloat 8s ease-in-out infinite;
}

/* Obsidian surfaces */
.obsidian-surface {
  background: var(--onyx-gradient);
  border: 1px solid var(--gunmetal);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.obsidian-card {
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border: 1px solid var(--gunmetal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* Razor-sharp filigree borders */
.filigree-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(var(--obsidian-dark), var(--obsidian-dark)) padding-box,
    linear-gradient(45deg, var(--accent-gold), var(--accent-silver), var(--accent-gold)) border-box;
}

.filigree-border::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-gold), transparent, var(--accent-silver));
  z-index: -1;
  border-radius: inherit;
}

/* Prose styling for readability */
.prose {
  color: #e5e5e5;
  line-height: 1.7;
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--accent-gold);
  font-weight: 700;
}

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

.prose ul li {
  margin-bottom: 0.5rem;
  color: #c1c1c1;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  background: var(--obsidian-dark);
}

.prose th,
.prose td {
  border: 1px solid var(--gunmetal);
  padding: 0.75rem;
  text-align: left;
}

.prose th {
  background: var(--obsidian-slate);
  color: var(--accent-gold);
  font-weight: 600;
}

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

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b8941f 100%);
  color: var(--obsidian-black);
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b8941f 0%, var(--accent-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-silver);
  color: var(--accent-silver);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--accent-silver);
  color: var(--obsidian-black);
  transform: translateY(-2px);
}

/* Bonus badge styling */
.bonus-badge {
  background: var(--onyx-gradient);
  border: 2px solid var(--accent-gold);
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  animation: marqueeScroll 3s infinite;
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
  background: var(--obsidian-card);
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .parallax-float {
    animation-duration: 4s;
  }

  .marquee-scroll {
    animation-duration: 15s;
  }
}
