/* METAPLAY Custom Styles - Dark VR Gaming Theme */

:root {
  /* METAPLAY Dark Background */
  --background: 260 60% 8%;
  --foreground: 0 0% 98%;
  --card: 260 50% 12%;
  --card-foreground: 0 0% 98%;
  --popover: 260 55% 10%;
  --popover-foreground: 0 0% 98%;

  /* METAPLAY Orange - Primary brand color */
  --primary: 30 100% 55%;
  --primary-foreground: 0 0% 10%;

  /* METAPLAY Pink/Magenta - Secondary */
  --secondary: 330 85% 60%;
  --secondary-foreground: 0 0% 100%;

  /* Dark Muted */
  --muted: 260 30% 20%;
  --muted-foreground: 0 0% 65%;

  /* Purple Accent */
  --accent: 270 75% 55%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;

  --border: 260 30% 25%;
  --input: 260 40% 15%;
  --ring: 30 100% 55%;
  --radius: 1rem;

  /* VR Gaming gradients */
  --gradient-hero: linear-gradient(135deg, hsl(260 60% 8%) 0%, hsl(270 50% 12%) 50%, hsl(260 60% 8%) 100%);
  --gradient-card: linear-gradient(180deg, hsl(260 50% 12%) 0%, hsl(260 55% 10%) 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, hsl(30 100% 55% / 0.15) 0%, transparent 70%);
  --gradient-orange: linear-gradient(135deg, hsl(30 100% 55%) 0%, hsl(20 100% 50%) 100%);
  --gradient-purple: linear-gradient(135deg, hsl(270 75% 55%) 0%, hsl(330 85% 60%) 100%);

  /* Glow effects */
  --glow-primary: 0 0 30px hsl(30 100% 55% / 0.6);
  --glow-secondary: 0 0 25px hsl(330 85% 60% / 0.5);
  --glow-accent: 0 0 25px hsl(270 75% 55% / 0.5);

  /* Animations */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

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

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

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

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

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

@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 {
  0% {
    transform: translateX(0);
  }

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

@keyframes float {

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

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

@keyframes accordion-down {
  from {
    max-height: 0;
    opacity: 0;
  }

  to {
    max-height: 1000px;
    opacity: 1;
  }
}

@keyframes accordion-up {
  from {
    max-height: 1000px;
    opacity: 1;
  }

  to {
    max-height: 0;
    opacity: 0;
  }
}

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

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

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

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

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

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

/* Container */
.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;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: hsl(var(--card));
  border-left: 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.3);
  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(--accent));
  color: hsl(var(--accent-foreground));
}

/* Accordion Styles - shadcn/ui exact match */
.accordion {
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid hsl(var(--border));
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: hsl(var(--foreground));
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.accordion-trigger:hover {
  text-decoration: underline;
}

.accordion-icon {
  height: 1rem;
  width: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.accordion-trigger[data-state="open"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  overflow: hidden;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  padding: 0;
}

.accordion-content[data-state="closed"] {
  animation: accordion-up 0.2s ease-out;
}

.accordion-content[data-state="open"] {
  animation: accordion-down 0.2s ease-out;
}

.accordion-content-inner {
  padding: 0 0 1rem 0;
}

/* Fallback for JavaScript-based accordion */
.accordion-content.active {
  max-height: 1000px;
  padding: 0 0 1rem 0;
}

.accordion-content:not(.active) {
  max-height: 0;
  padding: 0;
}

/* Form Elements - shadcn/ui exact match */
input,
textarea,
select {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  color: hsl(var(--foreground));
  transition: var(--transition-smooth);
  box-shadow: 0 0 0 0 hsl(var(--background));
}

/* Responsive text sizing for inputs - match React */
@media (min-width: 768px) {

  input,
  textarea,
  select {
    font-size: 0.875rem;
  }
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 2px hsl(var(--ring));
  outline-offset: 2px;
}

input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* File input specific styling */
input[type="file"] {
  border: 0;
  background-color: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

input[type="file"]::file-selector-button {
  border: 0;
  background-color: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

/* Textarea specific */
textarea {
  min-height: 80px;
  resize: vertical;
}

/* Button Styles - shadcn/ui exact match */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  ring-offset: hsl(var(--background));
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-decoration: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn svg {
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Button Variants */
.btn-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-default:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.btn-destructive:hover {
  background-color: hsl(var(--destructive) / 0.9);
}

.btn-outline {
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.btn-ghost {
  background-color: transparent;
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-link {
  color: hsl(var(--primary));
  text-underline-offset: 4px;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Button Sizes */
.btn {
  height: 2.5rem;
  padding: 0.5rem 1rem;
}

.btn-sm {
  height: 2.25rem;
  border-radius: 0.375rem;
  padding: 0 0.75rem;
}

.btn-lg {
  height: 2.75rem;
  border-radius: 0.375rem;
  padding: 0 2rem;
}

.btn-icon {
  height: 2.5rem;
  width: 2.5rem;
}

/* Legacy button classes for compatibility - Updated with shadcn/ui exact styling */
.btn-primary {
  /* shadcn/ui base button styles */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-decoration: none;
  outline: none;
  box-shadow: 0 0 0 0 hsl(var(--background));
  height: 2.75rem;
  padding: 0 2rem;
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--secondary)));
  color: white;
  box-shadow: 0 0 40px hsl(var(--primary) / 0.6);
  font-weight: 700;
}

.btn-primary:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn-primary:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-primary svg {
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-primary:hover {
  background: linear-gradient(to right, hsl(var(--primary) / 0.9), hsl(var(--secondary) / 0.9));
  box-shadow: 0 0 60px hsl(var(--primary) / 0.8);
  transform: scale(1.05);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-decoration: none;
  outline: none;
  height: 2.75rem;
  padding: 0 2rem;
  background-color: hsl(var(--background) / 0.5);
  backdrop-filter: blur(8px);
  border: 2px solid hsl(var(--primary) / 0.5);
  color: hsl(var(--foreground));
  font-weight: 700;
}

.btn-outline:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn-outline:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-outline svg {
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-outline:hover {
  background-color: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary));
  transform: scale(1.05);
}

/* Card Styles - shadcn/ui exact match */
.card {
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Enhanced card variants for specific use cases */
.card-enhanced {
  background: hsl(var(--card) / 0.4);
  backdrop-filter: blur(10px);
  border: 2px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.card:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-4px);
  box-shadow: 0 0 30px hsl(var(--primary) / 0.3);
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--secondary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Utility Classes */
.text-primary {
  color: hsl(var(--primary));
}

.text-secondary {
  color: hsl(var(--secondary));
}

.text-accent {
  color: hsl(var(--accent));
}

.bg-primary {
  background-color: hsl(var(--primary));
}

.bg-card {
  background-color: hsl(var(--card));
}

.bg-background {
  background-color: hsl(var(--background));
}

/* Background Clip Text */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-transparent {
  color: transparent;
}

/* Backdrop Utilities */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.backdrop-blur {
  backdrop-filter: blur(8px);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(16px);
}

/* Animation Delays */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-500 {
  animation-delay: 500ms;
}

.delay-1000 {
  animation-delay: 1000ms;
}

/* Gradient Backgrounds */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-primary {
  --tw-gradient-from: hsl(var(--primary));
  --tw-gradient-to: hsl(var(--primary) / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-secondary {
  --tw-gradient-to: hsl(var(--secondary) / 0);
  --tw-gradient-stops: var(--tw-gradient-from), hsl(var(--secondary)), var(--tw-gradient-to);
}

.to-primary {
  --tw-gradient-to: hsl(var(--primary));
}

.to-secondary {
  --tw-gradient-to: hsl(var(--secondary));
}

.to-accent {
  --tw-gradient-to: hsl(var(--accent));
}

.from-background {
  --tw-gradient-from: hsl(var(--background));
  --tw-gradient-to: hsl(var(--background) / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-background {
  --tw-gradient-to: hsl(var(--background) / 0);
  --tw-gradient-stops: var(--tw-gradient-from), hsl(var(--background)), var(--tw-gradient-to);
}

/* Background Size */
.bg-\[length\:200\%_auto\] {
  background-size: 200% auto;
}

/* Opacity Utilities */
.opacity-20 {
  opacity: 0.2;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-80 {
  opacity: 0.8;
}

/* Blur Utilities */
.blur-3xl {
  filter: blur(64px);
}

.blur-2xl {
  filter: blur(40px);
}

/* Rounded Utilities */
.rounded-full {
  border-radius: 9999px;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

/* Shadow Utilities */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Transform Utilities */
.scale-105 {
  transform: scale(1.05);
}

.translate-y-0 {
  transform: translateY(0);
}

.-translate-y-1 {
  transform: translateY(-0.25rem);
}

.-translate-y-2 {
  transform: translateY(-0.5rem);
}

/* Spacing Utilities */
.space-y-2>*+* {
  margin-top: 0.5rem;
}

.space-y-4>*+* {
  margin-top: 1rem;
}

.space-y-6>*+* {
  margin-top: 1.5rem;
}

.space-y-8>*+* {
  margin-top: 2rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* Leading (Line Height) */
.leading-none {
  line-height: 1;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Tracking (Letter Spacing) */
.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-normal {
  letter-spacing: 0;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

/* Max Width */
.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

/* Inset */
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Z-Index */
.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

/* Position */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

/* Flex Utilities */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* Grid Utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Responsive */
@media (max-width: 768px) {
  .md\:hidden {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex !important;
  }

  .md\:block {
    display: block !important;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}