/* Crystal Glass Effects */
.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border-color: rgba(161, 110, 255, 0.3);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Navigation Styles */
.nav-link {
  @apply text-crystal-200 hover:text-crystal-100 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200;
}

.nav-link:hover {
  background: linear-gradient(135deg, rgba(161, 110, 255, 0.2), rgba(161, 110, 255, 0.1));
}

.mobile-nav-link {
  @apply text-crystal-200 hover:text-crystal-100 block px-3 py-2 rounded-md text-base font-medium transition-colors duration-200;
}

.mobile-nav-link:hover {
  background: linear-gradient(135deg, rgba(161, 110, 255, 0.2), rgba(161, 110, 255, 0.1));
}

/* CTA Buttons */
.cta-button-primary {
  @apply inline-flex items-center px-8 py-4 bg-gradient-to-r from-crystal-600 to-crystal-700 text-white font-semibold rounded-xl shadow-lg hover:from-crystal-500 hover:to-crystal-600 transform hover:scale-105 transition-all duration-300;
  box-shadow: 0 10px 25px rgba(161, 110, 255, 0.3);
}

.cta-button-secondary {
  @apply inline-flex items-center px-8 py-4 bg-gradient-to-r from-smoky-700 to-smoky-800 text-crystal-200 font-semibold rounded-xl border border-crystal-500/30 hover:bg-gradient-to-r hover:from-smoky-600 hover:to-smoky-700 transform hover:scale-105 transition-all duration-300;
}

.cta-button-small {
  @apply inline-flex items-center justify-center px-4 py-2 bg-gradient-to-r from-crystal-600 to-crystal-700 text-white text-sm font-medium rounded-lg hover:from-crystal-500 hover:to-crystal-600 transition-all duration-200;
}

/* Game Cards */
.game-card {
  @apply bg-gradient-to-br from-smoky-800/50 to-smoky-900/50 p-4 rounded-xl border border-crystal-500/20 backdrop-blur-sm;
}

.game-card:hover {
  @apply border-crystal-400/40 transform scale-105;
  transition: all 0.3s ease;
}

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

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

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

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

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

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

/* Tilt Effect */
.tilt-effect {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.tilt-effect:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Parallax */
.parallax {
  will-change: transform;
}

/* Prose Styling for Readability */
.prose-crystal {
  --tw-prose-body: rgb(203 213 225);
  --tw-prose-headings: rgb(226 232 240);
  --tw-prose-lead: rgb(148 163 184);
  --tw-prose-links: rgb(161 110 255);
  --tw-prose-bold: rgb(226 232 240);
  --tw-prose-counters: rgb(148 163 184);
  --tw-prose-bullets: rgb(100 116 139);
  --tw-prose-hr: rgb(51 65 85);
  --tw-prose-quotes: rgb(226 232 240);
  --tw-prose-quote-borders: rgb(51 65 85);
  --tw-prose-captions: rgb(148 163 184);
  --tw-prose-code: rgb(226 232 240);
  --tw-prose-pre-code: rgb(226 232 240);
  --tw-prose-pre-bg: rgb(15 23 42);
  --tw-prose-th-borders: rgb(51 65 85);
  --tw-prose-td-borders: rgb(30 41 59);
}

.prose-crystal p {
  line-height: 1.8;
  margin-bottom: 1.5em;
}

.prose-crystal h2 {
  color: rgb(161 110 255);
  margin-top: 2em;
  margin-bottom: 1em;
}

.prose-crystal h3 {
  color: rgb(196 181 253);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.prose-crystal a {
  color: rgb(161 110 255);
  text-decoration: none;
  border-bottom: 1px solid rgba(161, 110, 255, 0.3);
  transition: all 0.2s ease;
}

.prose-crystal a:hover {
  color: rgb(196 181 253);
  border-bottom-color: rgb(196 181 253);
}

/* Responsive Design */
@media (max-width: 768px) {
  .glass-card {
    border-radius: 12px;
    padding: 1rem;
  }

  .cta-button-primary,
  .cta-button-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

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

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

::-webkit-scrollbar-track {
  background: rgb(15 23 42);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, rgb(161 110 255), rgb(139 71 255));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, rgb(196 181 253), rgb(161 110 255));
}

/* Loading States */
.loading-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Focus States for Accessibility */
.cta-button-primary:focus,
.cta-button-secondary:focus,
.cta-button-small:focus {
  outline: 2px solid rgb(161 110 255);
  outline-offset: 2px;
}

.nav-link:focus,
.mobile-nav-link:focus {
  outline: 2px solid rgb(161 110 255);
  outline-offset: 2px;
  border-radius: 4px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .glass-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgb(161 110 255);
  }

  .text-smoky-300 {
    color: rgb(226 232 240);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .tilt-effect:hover,
  .game-card:hover,
  .cta-button-primary:hover,
  .cta-button-secondary:hover {
    transform: none;
  }

  .float-animation,
  .shimmer-effect,
  .pulse-glow {
    animation: none;
  }

  .parallax {
    transform: none !important;
  }
}
