/* Palia Cozy MMO Landing Page Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@400;600;800&display=swap');

:root {
  --color-palia-green: #2E7D32;
  --color-palia-emerald: #10B981;
  --color-palia-gold: #F59E0B;
  --color-palia-amber: #D97706;
  --color-palia-purple: #7C3AED;
  --color-palia-dark: #0F172A;
  --color-palia-card: rgba(30, 41, 59, 0.75);
}

body {
  font-family: 'Kanit', 'Outfit', sans-serif;
  scroll-behavior: smooth;
  background-color: #0B1320;
  color: #F8FAFC;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0B1320;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #10B981, #047857);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #34D399, #059669);
}

/* Glassmorphism Styles */
.glass-nav {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 20px 35px -5px rgba(16, 185, 129, 0.25);
}

.glass-modal {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Gradient Text */
.text-gradient-gold {
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #6EE7B7 0%, #10B981 50%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-shadow-hero {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);
}

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

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

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

/* Hero Overlay Gradient */
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(11, 19, 32, 0.4) 0%,
    rgba(11, 19, 32, 0.75) 60%,
    #0B1320 100%
  );
}

/* Feature Badge Glow */
.badge-glow {
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* Lightbox Modal CSS */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  animation: modalScale 0.3s ease-out forwards;
}

@keyframes modalScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.aspect-video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}

.aspect-video-responsive iframe,
.aspect-video-responsive img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Item Hover Overlay */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
}

.gallery-card img {
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}
