/* ==========================================================================
   MOON DESTINATION - GLASSMORPHISM DESIGN SYSTEM
   WordPress Child Theme Stylesheet & Standalone UI Engine
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-primary);
  
  --color-text-main: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-text-dim: rgba(255, 255, 255, 0.45);
  
  --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 40px 80px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.6), inset 0 -1px 2px rgba(255, 255, 255, 0.15);
  --glass-blur: blur(28px) saturate(190%);
  
  --btn-bg: #1c1d1f;
  --btn-hover: #000000;
  --btn-text: #ffffff;
  
  --pink-glow: rgba(255, 140, 180, 0.6);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.moon-destination-page,
.moon-page-wrapper {
  font-family: var(--font-primary);
  background-color: #0b0a0e;
  color: var(--color-text-main);
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

/* Full Hero Background Layer */
.moon-hero-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background-image: url('../images/moon_destination_bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.2s ease-out;
}

.moon-hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

/* Ambient Floating Decorative Elements */
.ambient-glow-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  bottom: 12%;
  right: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 200, 0.7) 0%, rgba(255, 120, 170, 0.2) 50%, transparent 75%);
  filter: blur(35px);
  pointer-events: none;
  z-index: 2;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

.floating-chrome-sphere {
  position: absolute;
  top: 45%;
  left: 18%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #b0b5bd 40%, #4a5059 85%, #1a1d22 100%);
  box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.6), inset 5px 5px 15px rgba(255, 255, 255, 0.8), 0 20px 40px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 2;
  animation: floatSphere 5s ease-in-out infinite alternate;
}

.floating-chrome-sphere-small {
  position: absolute;
  top: 38%;
  left: 19.5%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #a0a6b0 40%, #3a3f47 85%, #121417 100%);
  box-shadow: inset -3px -3px 10px rgba(0, 0, 0, 0.6), inset 3px 3px 10px rgba(255, 255, 255, 0.8), 0 15px 30px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 2;
  animation: floatSphere 6s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.65; }
  100% { transform: scale(1.1); opacity: 0.9; }
}

@keyframes floatSphere {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-18px) rotate(5deg); }
}

/* Glassmorphism Destination Card Container */
.moon-card-container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  perspective: 1200px;
}

.moon-glass-card {
  position: relative;
  width: 380px;
  padding: 24px 28px 36px 28px;
  border-radius: 170px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  cursor: pointer;
}

.moon-glass-card:hover {
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.35), 
              inset 0 1px 3px rgba(255, 255, 255, 0.8), 
              inset 0 -1px 3px rgba(255, 255, 255, 0.25),
              0 0 40px rgba(255, 255, 255, 0.15);
}

/* Top Circular Portal Cutout */
.moon-portal-window {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4), 0 10px 25px rgba(0, 0, 0, 0.2);
  margin-bottom: 24px;
}

.moon-portal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.moon-glass-card:hover .moon-portal-image {
  transform: scale(1.08);
}

/* Card Content Typography */
.moon-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.moon-subtitle {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  text-transform: lowercase;
  margin-bottom: 4px;
  opacity: 0.9;
}

.moon-title {
  font-family: var(--font-primary);
  font-size: 54px;
  font-weight: 300;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--color-text-main);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
}

/* Travel Info Details */
.moon-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
}

.moon-date {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.2px;
}

.moon-code {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.3px;
}

/* Pricing Tag */
.moon-price-tag {
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Apple Pay Button Styling */
.apple-pay-button-container {
  width: 100%;
  max-width: 240px;
  margin-bottom: 14px;
}

.apple-pay-btn {
  width: 100%;
  height: 52px;
  border-radius: 26px;
  background-color: var(--btn-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--btn-text);
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.apple-pay-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.apple-pay-btn:hover {
  background-color: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.apple-pay-btn:hover::before {
  left: 100%;
}

.apple-pay-btn:active {
  transform: translateY(1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.apple-icon {
  width: 19px;
  height: 22px;
  fill: currentColor;
  margin-top: -3px;
}

/* Tagline */
.moon-tagline {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-dim);
  letter-spacing: 0.2px;
}

/* Interactive Modal Setup */
.moon-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.moon-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.moon-modal-card {
  width: 90%;
  max-width: 440px;
  background: linear-gradient(135deg, rgba(35, 35, 45, 0.95), rgba(20, 20, 25, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.moon-modal-overlay.active .moon-modal-card {
  transform: scale(1);
}

.modal-icon-success {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #28a745, #20c997);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.modal-icon-success svg {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
  stroke-width: 3;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 10px;
}

.modal-text {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 20px;
  font-family: var(--font-primary);
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Header & Footer bar for WordPress Integration */
.moon-wp-header,
.moon-wp-footer {
  position: fixed;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.moon-wp-header {
  top: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.moon-wp-footer {
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.moon-brand-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}

.moon-nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.moon-nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.moon-nav-links a:hover {
  color: #ffffff;
}

/* Responsive Viewports */
@media (max-width: 600px) {
  .moon-glass-card {
    width: 320px;
    padding: 20px 20px 30px 20px;
    border-radius: 140px;
  }
  
  .moon-portal-window {
    width: 200px;
    height: 200px;
  }
  
  .moon-title {
    font-size: 44px;
  }
  
  .floating-chrome-sphere,
  .floating-chrome-sphere-small,
  .ambient-glow-orb {
    display: none;
  }
}
