/* Custom animations and overrides */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  --primary-purple: #8b5cf6;
  --secondary-purple: #a78bfa;
  --accent-purple: #c4b5fd;
  --holographic-gradient: linear-gradient(135deg, #8b5cf6, #a78bfa, #3300ff, #512aff);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

* {
  font-family: "Inter", sans-serif;
}

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

/* Holographic effects */
.holographic-bg {
  background: var(--holographic-gradient);
  background-size: 400% 400%;
  animation: holographicShift 8s ease-in-out infinite;
}

.holographic-text {
  background: var(--holographic-gradient);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holographicShift 6s ease-in-out infinite;
}

.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
}

/* Keyframe animations */
@keyframes holographicShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

@keyframes pulse3d {
  0%,
  100% {
    transform: scale(1) rotateY(0deg);
  }
  50% {
    transform: scale(1.05) rotateY(5deg);
  }
}

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

/* Parallax container */
.parallax-container {
  perspective: 1000px;
  overflow: hidden;
}

.parallax-element {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* Tilt effect */
.tilt-element {
  transition: transform 0.3s ease;
}

.tilt-element:hover {
  animation: tiltHover 0.6s ease forwards;
}

/* 3D button effects */
.btn-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
}

.btn-3d:hover {
  transform: translateY(-2px) rotateX(5deg);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.btn-3d:active {
  transform: translateY(0px) rotateX(0deg);
}

/* Floating animation */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Pulse 3D animation */
.pulse-3d {
  animation: pulse3d 2s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-purple);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-purple);
}

/* Prose styling for readability */
.prose {
  max-width: none;
  line-height: 1.7;
}

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

.prose h2 {
  color: #1e293b;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  color: #334155;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

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

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

/* Mobile burger menu */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
}

.burger-line {
  width: 25px;
  height: 3px;
  background: var(--primary-purple);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 1023px) {
  .burger-menu {
    display: flex;
  }

  .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav.active {
    display: block;
  }
}

/* Responsive utilities */
@media (max-width: 768px) {
  .text-responsive {
    font-size: 0.9rem;
  }

  .container-mobile {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.game-card:hover {
  transform: translateY(-5px) rotateX(5deg) rotateY(2deg);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
}

/* Bonus badge styling */
.bonus-badge {
  position: relative;
  overflow: hidden;
}

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

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* FAQ accordion styling */
.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

.faq-question {
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--primary-purple);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 200px;
}
