/* GALAYS Custom Styles - Updated to match React version */

:root {
  --background: 0 0% 99%;
  --foreground: 0 0% 5%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 5%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 5%;
  --primary: 351 98% 47%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 15%;
  --secondary-foreground: 0 0% 100%;
  --muted: 0 0% 96%;
  --muted-foreground: 0 0% 40%;
  --accent: 351 98% 47%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 90%;
  --input: 0 0% 95%;
  --ring: 351 100% 47%;
  --radius: 1rem;

  /* Modern GALAYS gradients */
  --gradient-primary: linear-gradient(135deg, hsl(351 98% 47%) 0%, hsl(351 98% 42%) 100%);
  --gradient-secondary: linear-gradient(135deg, hsl(0 0% 15%) 0%, hsl(0 0% 10%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(351 98% 47%) 0%, hsl(351 98% 42%) 100%);
  --gradient-hero: linear-gradient(135deg, hsl(0 0% 98%) 0%, hsl(0 0% 100%) 100%);
  --gradient-mesh: radial-gradient(at 0% 0%, hsl(351 98% 47% / 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsl(351 98% 47% / 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsl(351 98% 47% / 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsl(351 98% 47% / 0.05) 0px, transparent 50%);

  /* Glass effects */
  --glass-bg: hsl(0 0% 100% / 0.7);
  --glass-border: hsl(0 0% 100% / 0.3);
  
  /* Glow effects */
  --glow-primary: 0 10px 60px hsl(351 100% 47% / 0.4);
  --glow-secondary: 0 10px 60px hsl(280 70% 55% / 0.4);
  --glow-accent: 0 10px 60px hsl(45 100% 51% / 0.4);
  
  /* Animations */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Additional variables from React version */
  --radius: 0.75rem;
  --sidebar-background: 0 0% 98%;
  --sidebar-foreground: 240 5.3% 26.1%;
  --sidebar-primary: 240 5.9% 10%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 240 4.8% 95.9%;
  --sidebar-accent-foreground: 240 5.9% 10%;
  --sidebar-border: 220 13% 91%;
  --sidebar-ring: 217.2 91.2% 59.8%;
}

.dark {
  --background: 210 50% 7%;
  --foreground: 0 0% 98%;
  --sidebar-background: 240 5.9% 10%;
  --sidebar-foreground: 240 4.8% 95.9%;
  --sidebar-primary: 224.3 76.3% 48%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 240 3.7% 15.9%;
  --sidebar-accent-foreground: 240 4.8% 95.9%;
  --sidebar-border: 240 3.7% 15.9%;
  --sidebar-ring: 217.2 91.2% 59.8%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.333%);
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px hsl(var(--primary) / 0.3);
  }
  50% {
    box-shadow: 0 0 40px hsl(var(--primary) / 0.6);
  }
}

@keyframes gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes scroll-reverse {
  0% {
    transform: translateX(-33.333%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes accordion-down {
  from {
    height: 0;
  }
  to {
    height: var(--radix-accordion-content-height);
  }
}

@keyframes accordion-up {
  from {
    height: var(--radix-accordion-content-height);
  }
  to {
    height: 0;
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fade-in-left 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fade-in-right 0.6s ease-out;
}

.animate-scale-in {
  animation: scale-in 0.4s ease-out;
}

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

.animate-scroll {
  animation: scroll 60s linear infinite;
}

.animate-scroll-reverse {
  animation: scroll-reverse 60s linear infinite;
}

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

.animate-gradient {
  animation: gradient 8s ease infinite;
  background-size: 200% 200%;
}

.accordion-down {
  animation: accordion-down 0.2s ease-out;
}

.accordion-up {
  animation: accordion-up 0.2s ease-out;
}

/* Logo - Only Zoom Effect */
nav a img {
  filter: none !important;
  box-shadow: none !important;
  background: none !important;
  border: none !important;
}

nav a:hover img {
  filter: none !important;
  box-shadow: none !important;
  background: none !important;
  border: none !important;
}

/* Remove gradient underline from logo link */
nav a:has(img)::after {
  display: none !important;
}

nav a:has(img):hover::after {
  display: none !important;
}

/* Enhanced Card Hover Effects */
.game-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
  transform: scale(1.02) translateY(-8px);
  box-shadow: var(--glow-primary);
  border-color: hsl(var(--primary));
}

/* Pricing Card Hover Effects */
.pricing-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px -12px hsl(var(--primary) / 0.25);
  border-color: hsl(var(--primary));
}

/* Button Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced Slider Transitions */
.slider-slide {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide.active {
  transform: scale(1) translateX(0);
  opacity: 1;
  z-index: 10;
}

.slider-slide.prev {
  transform: scale(0.8) translateX(-100px);
  opacity: 0.6;
  z-index: 5;
}

.slider-slide.next {
  transform: scale(0.8) translateX(100px);
  opacity: 0.6;
  z-index: 5;
}

.slider-slide.hidden {
  transform: scale(0.7) translateX(0);
  opacity: 0;
  z-index: 1;
}

/* Perfect Hover States */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Enhanced Navigation Hover */
nav a {
  position: relative;
  transition: all 0.2s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--secondary)));
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Smooth Animations */
.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Mobile Menu */
.mobile-menu {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Language Menu Dropdown */
.language-menu {
  transition: all 0.2s ease;
  transform-origin: top right;
}

.language-menu.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Perfect Form Focus States */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
  transition: all 0.2s ease;
}

/* Enhanced Accordion */
.accordion-content {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.accordion-trigger {
  transition: all 0.2s ease;
}

.accordion-trigger:hover {
  color: hsl(var(--primary));
}

/* Perfect Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Enhanced Tooltips */
.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--muted-foreground));
  color: hsl(var(--muted));
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 50;
}

.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}


/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: hsl(var(--card));
  border-right: 1px solid hsl(var(--border));
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
  transform: translateX(0);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.mobile-menu-overlay.active {
  display: block;
}

/* Language Dropdown */
.language-dropdown {
  position: relative;
}

.language-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  min-width: 12rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.language-menu.active {
  display: block;
}

.language-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: background-color 0.2s;
}

.language-menu a:hover {
  background-color: hsl(var(--muted));
}

/* Accordion */
.accordion-item {
  border: 2px solid hsl(var(--border));
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.3s;
}

.accordion-item:hover {
  border-color: hsl(var(--primary));
}

.accordion-trigger {
  width: 100%;
  padding: 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  font-weight: bold;
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: hsl(var(--foreground));
  transition: color 0.3s;
}

.accordion-trigger:hover {
  color: hsl(var(--primary));
}

.accordion-trigger .icon {
  transition: transform 0.3s;
}

.accordion-trigger.active .icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  color: hsl(var(--muted-foreground));
}

.accordion-content.active {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

/* Slider */
.slider-container {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}