/* Enhanced Styles for Moon Project - Premium UI/UX Improvements */

/* Enhanced Color Palette with Depth */
:root {
  /* Existing colors enhanced */
  --primary-dark: #0B1426;
  --primary-blue: #1E3A5F;
  --accent-gold: #D4AF37;
  --accent-gold-light: #E8C866;
  --accent-gold-dark: #B8941F;
  --accent-silver: #C0C0C0;
  --moon-gray: #F5F5F5;
  --star-white: #FFFFFF;
  --space-black: #000000;
  --cosmic-purple: #4A148C;
  --nebula-pink: #9C27B0;
  
  /* Enhanced gradients */
  --gradient-hero: linear-gradient(135deg, #0B1426 0%, #1E3A5F 30%, #2A4A7A 60%, #4A148C 100%);
  --gradient-card: linear-gradient(145deg, #1E3A5F 0%, #0B1426 100%);
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #E8C866 50%, #D4AF37 100%);
  --gradient-moon: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9) 0%, rgba(240,240,240,0.8) 50%, rgba(200,200,200,0.6) 100%);
  --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(11,20,38,0.3) 50%, rgba(11,20,38,0.8) 100%);
  
  /* Enhanced shadows with depth */
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 12px 48px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.3);
  --shadow-glow-strong: 0 0 60px rgba(212, 175, 55, 0.5);
  
  /* Enhanced transitions */
  --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);
  --transition-elastic: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Enhanced Body with Animated Background */
body {
  position: relative;
  background: var(--primary-dark);
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(30, 58, 95, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(74, 20, 140, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  background-attachment: fixed;
  animation: backgroundShift 20s ease-in-out infinite alternate;
}

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

/* Enhanced Header with Scroll Effect */
.site-header {
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(11, 20, 38, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(30px);
}

/* Enhanced Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-title {
  position: relative;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-features {
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Enhanced Moon Container with Glow */
.moon-container {
  position: relative;
  animation: moonFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
}

@keyframes moonFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

.moon-container::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* Enhanced Step Sections with Progress Indicators */
.step-section {
  position: relative;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.step-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-section.active::before {
  opacity: 1;
}

.step-section:hover {
  transform: translateX(4px);
  border-color: rgba(212, 175, 55, 0.3);
}

.step-number {
  position: relative;
  overflow: hidden;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.step-section.active .step-number::after {
  transform: translateX(100%);
}

/* Enhanced Input Fields */
input, select, textarea {
  position: relative;
  transition: var(--transition-smooth);
}

input:focus, select:focus, textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2), 0 0 0 3px rgba(212, 175, 55, 0.1);
}

input:not(:placeholder-shown):valid,
select:not([value=""]):valid {
  border-color: var(--success);
  background: rgba(76, 175, 80, 0.05);
}

/* Enhanced Buttons with Ripple Effect */
.btn, .action-btn, .preset-btn {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn::before, .action-btn::before, .preset-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before, .action-btn:active::before, .preset-btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary, .action-btn.primary {
  background: var(--gradient-gold);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.btn-primary:hover, .action-btn.primary:hover {
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-3px) scale(1.02);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

/* Enhanced Product Cards */
.product-card, .featured-card {
  position: relative;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.product-card::before, .featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.product-card:hover::before, .featured-card:hover::before {
  left: 100%;
}

.product-card:hover, .featured-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-strong), var(--shadow-glow);
}

/* Enhanced Moon Visualization */
.moon-visualization {
  position: relative;
}

.canvas-wrap {
  position: relative;
  background: 
    radial-gradient(circle at 20% 30%, rgba(30, 58, 95, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(74, 20, 140, 0.3) 0%, transparent 50%),
    radial-gradient(circle at center, #1E3A5F 0%, #0B1426 100%);
  transition: var(--transition-smooth);
}

.canvas-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="0.5" fill="white" opacity="0.3"/><circle cx="80" cy="30" r="0.3" fill="white" opacity="0.2"/><circle cx="40" cy="70" r="0.4" fill="white" opacity="0.25"/><circle cx="90" cy="80" r="0.2" fill="white" opacity="0.15"/></svg>');
  pointer-events: none;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Enhanced Timeline Controls */
.timeline-slider input[type="range"] {
  position: relative;
  background: linear-gradient(to right, 
    var(--accent-gold) 0%, 
    var(--accent-gold) var(--value, 0%), 
    rgba(255, 255, 255, 0.2) var(--value, 0%), 
    rgba(255, 255, 255, 0.2) 100%);
}

.timeline-slider input[type="range"]::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.timeline-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.3), 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Enhanced Modal with Backdrop Blur */
.modal-backdrop {
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Enhanced Success Modal */
.success-icon {
  animation: successBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(10deg); }
  70% { transform: scale(0.9) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Enhanced Loading States */
.moon-loading-state {
  position: relative;
}

.moon-icon-placeholder {
  animation: moonPulse 2s ease-in-out infinite;
}

@keyframes moonPulse {
  0%, 100% { 
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
  }
  50% { 
    transform: scale(1.1);
    filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.8));
  }
}

/* Enhanced Swatch Items */
.swatch-item {
  position: relative;
  transition: var(--transition-smooth);
}

.swatch-item::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: var(--primary-dark);
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.swatch-item[aria-checked="true"]::after,
.swatch-item.selected::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Enhanced Trust Indicators */
.trust-item {
  position: relative;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.trust-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent-gold);
  transition: height 0.3s ease;
}

.trust-item:hover::before {
  height: 60%;
}

/* Enhanced Testimonials */
.testimonial-card {
  position: relative;
  transition: var(--transition-smooth);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 6rem;
  color: rgba(212, 175, 55, 0.1);
  font-family: var(--font-display);
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

/* Enhanced Progress Indicators */
.step-progress {
  position: relative;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.step-progress::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Enhanced Form Validation */
.form-group {
  position: relative;
}

.form-group input:invalid:not(:placeholder-shown) {
  border-color: var(--error);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.form-group input:valid:not(:placeholder-shown) {
  border-color: var(--success);
}

.form-group::after {
  content: '✓';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--success);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 1.2rem;
}

.form-group input:valid:not(:placeholder-shown) ~ *,
.form-group:has(input:valid:not(:placeholder-shown))::after {
  opacity: 1;
}

/* Enhanced Cart Button */
.cart-button {
  position: relative;
}

.cart-count {
  animation: cartBounce 0.5s ease-in-out;
}

@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Enhanced Floating Cards */
.floating-card {
  animation: float 6s ease-in-out infinite;
  transition: var(--transition-smooth);
}

.floating-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-medium);
}

/* Enhanced Scroll Animations */
@keyframes fadeInOnScroll {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInOnScroll 0.8s ease-out both;
}

/* Enhanced Focus States for Accessibility */
*:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Enhanced Selection */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--star-white);
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(11, 20, 38, 0.5);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-gold);
  border-radius: 6px;
  border: 2px solid var(--primary-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-light);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 120px 0 60px;
  }
  
  .step-section:hover {
    transform: none;
  }
  
  .product-card:hover,
  .featured-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

/* Additional Aesthetic Enhancements */

/* Enhanced Typography with Better Hierarchy */
.hero-title {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Enhanced Logo */
.logo h1 {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
  transition: var(--transition-smooth);
}

.logo:hover h1 {
  filter: drop-shadow(0 4px 16px rgba(212, 175, 55, 0.5));
  transform: scale(1.02);
}

/* Enhanced Navigation Links */
.nav-link {
  position: relative;
  padding: 8px 0;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

/* Enhanced Input Fields with Floating Labels Effect */
.input-group label {
  position: relative;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

input:focus ~ .input-label,
input:not(:placeholder-shown) ~ .input-label {
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Enhanced Preset Buttons */
.preset-btn {
  position: relative;
  overflow: hidden;
}

.preset-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.preset-btn:active::after {
  width: 300px;
  height: 300px;
}

.preset-btn.active {
  background: var(--gradient-gold);
  color: var(--primary-dark);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

/* Enhanced Moon Image Container */
.moon-image-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 
    inset 0 0 60px rgba(212, 175, 55, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.moon-image-container:hover {
  box-shadow: 
    inset 0 0 80px rgba(212, 175, 55, 0.15),
    0 12px 48px rgba(0, 0, 0, 0.5);
}

#moonImg {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.moon-image-container:hover #moonImg {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* Enhanced Timeline Slider */
.timeline-slider {
  position: relative;
  padding: 20px 0;
}

.timeline-slider input[type="range"] {
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.timeline-slider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transform: translateY(-50%);
  z-index: 1;
}

/* Enhanced Phase Markers */
.phase-markers {
  position: relative;
  margin-top: 16px;
}

.phase-markers .marker {
  position: relative;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.phase-markers .marker:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Enhanced Action Buttons */
.action-btn {
  position: relative;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.action-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient-gold);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.action-btn:hover::after {
  opacity: 1;
}

/* Enhanced Trust Indicators */
.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.trust-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-gold);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.trust-item:hover::before {
  transform: scaleY(1);
}

.trust-icon {
  font-size: 1.25rem;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Enhanced Featured Cards */
.featured-card {
  position: relative;
  overflow: hidden;
}

.featured-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.featured-card:hover::after {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 2;
}

/* Enhanced Testimonials */
.testimonial-card {
  position: relative;
  backdrop-filter: blur(10px);
}

.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  pointer-events: none;
}

.stars {
  font-size: 1.5rem;
  letter-spacing: 4px;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
}

/* Enhanced Footer */
.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-gold);
  opacity: 0.3;
}

.footer-section h4,
.footer-section h5 {
  position: relative;
  padding-left: 12px;
}

.footer-section h4::before,
.footer-section h5::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent-gold);
  border-radius: 2px;
}

/* Enhanced Modal */
.modal-content {
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  opacity: 0.8;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: rotate(90deg);
}

/* Enhanced Swatch Items */
.swatch-item {
  position: relative;
  overflow: hidden;
}

.swatch-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swatch-item:hover::before {
  opacity: 1;
}

.swatch-item[aria-checked="true"],
.swatch-item.selected {
  box-shadow: 0 0 0 2px var(--accent-gold), var(--shadow-glow);
}

/* Enhanced Loading States */
.moon-loading-state {
  background: radial-gradient(circle at center, rgba(30, 58, 95, 0.8) 0%, rgba(11, 20, 38, 0.9) 100%);
}

.loading-placeholder {
  position: relative;
}

.loading-placeholder::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Enhanced Error States */
.moon-error-state {
  background: radial-gradient(circle at center, rgba(244, 67, 54, 0.1) 0%, rgba(11, 20, 38, 0.9) 100%);
}

.error-icon {
  animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px) rotate(-5deg); }
  75% { transform: translateX(10px) rotate(5deg); }
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: rgba(11, 20, 38, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-gold);
  border-radius: 7px;
  border: 3px solid var(--primary-dark);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #E8C866 0%, #D4AF37 100%);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Enhanced Selection */
::selection {
  background: rgba(212, 175, 55, 0.4);
  color: var(--star-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced Focus States */
*:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.1);
}

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

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .trust-indicators {
    gap: 12px;
  }
  
  .trust-item {
    padding: 8px 12px;
    font-size: 0.875rem;
  }
}

/* Print Styles */
@media print {
  * {
    animation: none !important;
    transition: none !important;
  }
}

