/* LumiGlance™ LED Face Mask Editorial Split CSS */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #0a090e;
  --bg-secondary: #14121d;
  --bg-tertiary: #1f1b2d;
  --accent-rose: #d4a373;
  --accent-pink: #f28482;
  --accent-pink-glow: rgba(242, 132, 130, 0.35);
  --text-main: #f3f4f6;
  --text-muted: #a1a1aa;
  --gold-gradient: linear-gradient(135deg, #e6b8a2 0%, #d4a373 50%, #b07d62 100%);
  --rose-glow: 0 0 35px rgba(242, 132, 130, 0.2);
  --border-glow: 1px solid rgba(212, 163, 115, 0.1);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.8;
  overflow: hidden; /* Lock scroll on body to scroll left/right panels independently */
  position: relative;
}

@media (max-width: 968px) {
  body {
    overflow-y: auto; /* Allow normal scrolling on mobile */
  }
}

/* Luxury Grain Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.font-sans {
  font-family: 'Outfit', sans-serif;
}

/* Split Layout Setup */
.split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

@media (max-width: 968px) {
  .split-container {
    grid-template-columns: 1fr;
    height: auto;
    width: 100%;
    overflow: visible;
  }
}

/* Left Pane - Fixed Media Showcase */
.left-pane {
  background: radial-gradient(circle at center, #161423 0%, #0a090e 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  padding: 40px;
}

@media (max-width: 968px) {
  .left-pane {
    height: 480px;
    padding: 24px;
  }
}

/* Back Link Floating */
.floating-back {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-rose);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(5px);
}

.floating-back:hover {
  background: rgba(212, 163, 115, 0.1);
  color: #fff;
  border-color: rgba(212, 163, 115, 0.3);
  transform: translateX(-3px);
}

.logo-display {
  position: absolute;
  top: 30px;
  right: 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Media Display */
.media-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  justify-content: center;
}

.media-glow {
  position: absolute;
  width: 90%;
  height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-pink-glow) 0%, transparent 70%);
  z-index: 1;
  filter: blur(40px);
  animation: pulseGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95); }
  100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.08); }
}

.media-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(212, 163, 115, 0.15);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
}

/* Wavelength Indicator Orbs */
.color-badge-row {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 16px;
  z-index: 3;
}

.color-indicator-orb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.color-indicator-orb.active {
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.color-indicator-orb.red { background: radial-gradient(circle at center, #ef4444 0%, #b91c1c 100%); }
.color-indicator-orb.blue { background: radial-gradient(circle at center, #3b82f6 0%, #1d4ed8 100%); }
.color-indicator-orb.yellow { background: radial-gradient(circle at center, #f59e0b 0%, #b45309 100%); }

/* Right Pane - Scrollable Editorial Feed */
.right-pane {
  height: 100vh;
  overflow-y: auto;
  padding: 80px 60px 140px 60px; /* high bottom padding for purchase bar */
  scroll-behavior: smooth;
  background: var(--bg-primary);
}

/* Elegant scrollbar */
.right-pane::-webkit-scrollbar {
  width: 6px;
}
.right-pane::-webkit-scrollbar-track {
  background: transparent;
}
.right-pane::-webkit-scrollbar-thumb {
  background: rgba(212, 163, 115, 0.15);
  border-radius: 3px;
}
.right-pane::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 163, 115, 0.3);
}

@media (max-width: 968px) {
  .right-pane {
    height: auto;
    overflow-y: visible;
    padding: 40px 24px 100px 24px;
  }
}

.editorial-section {
  margin-bottom: 90px;
}

.editorial-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 20px;
  display: inline-block;
}

.editorial-section h1 {
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1.1;
  margin-bottom: 28px;
  font-weight: 300;
}

.editorial-section h1 span {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-rose);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.editorial-section p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
}

/* Statistics Grid */
.stat-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 48px 0;
}

.stat-item {
  border-left: 1px solid rgba(212, 163, 115, 0.3);
  padding-left: 20px;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-lbl {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Wavelength details panel */
.wavelength-panel {
  padding: 36px;
  background: rgba(20, 18, 29, 0.5);
  border: 1px solid rgba(212, 163, 115, 0.08);
  border-radius: 12px;
  margin-bottom: 30px;
  backdrop-filter: blur(5px);
  animation: slideFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.wavelength-panel h3 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wavelength-panel p {
  font-size: 15px;
  color: var(--text-muted);
}

/* Skin Quiz Card */
.quiz-card {
  padding: 44px 36px;
  border: 1px solid rgba(212, 163, 115, 0.08);
  background: rgba(20, 18, 29, 0.4);
  border-radius: 16px;
  margin-top: 40px;
  backdrop-filter: blur(10px);
}

.quiz-progress-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1px;
  margin-bottom: 32px;
  overflow: hidden;
}

.quiz-progress {
  height: 100%;
  width: 33.33%;
  background: var(--gold-gradient);
  transition: var(--transition);
}

.quiz-question {
  display: none;
}

.quiz-question.active {
  display: block;
}

.quiz-question h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 24px;
  color: #fff;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-btn {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(212, 163, 115, 0.08);
  color: var(--text-main);
  padding: 16px 24px;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.quiz-btn:hover {
  background: rgba(212, 163, 115, 0.08);
  border-color: rgba(212, 163, 115, 0.3);
  transform: translateX(4px);
}

.quiz-result {
  display: none;
  text-align: center;
}

.quiz-result h3 {
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 400;
}

.quiz-result p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.result-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(212, 163, 115, 0.1);
  border-radius: 30px;
  border: 1px solid rgba(212, 163, 115, 0.15);
  font-size: 11px;
  font-family: 'Outfit', sans-serif;
  color: var(--accent-rose);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Reviews Editorial Styling */
.testimonial-row {
  border-bottom: 1px solid rgba(212, 163, 115, 0.06);
  padding: 36px 0;
}

.testimonial-row:first-of-type {
  border-top: 1px solid rgba(212, 163, 115, 0.06);
}

.testimonial-quote {
  font-size: 18px;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  color: #f3f4f6;
  font-weight: 300;
}

.testimonial-author {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonial-author span.author-rating {
  color: #d4a373;
}

/* FAQ Simple List */
.faq-row {
  border-bottom: 1px solid rgba(212, 163, 115, 0.06);
  padding: 24px 0;
}

.faq-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: '↓';
  font-size: 16px;
  color: var(--accent-rose);
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.faq-row.active .faq-q::after {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 0;
}

.faq-row.active .faq-a {
  max-height: 150px;
  margin-top: 12px;
}

/* Persistent Bottom Purchase Bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  width: 50%;
  height: 90px;
  background: rgba(10, 9, 14, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(212, 163, 115, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  z-index: 99;
}

@media (max-width: 968px) {
  .bottom-bar {
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 24px;
  }
}

.bar-product-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
}

.bar-product-info span {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}

.bar-cta {
  background: var(--gold-gradient);
  color: #000;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: var(--rose-glow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 163, 115, 0.35);
}

.bar-cta svg {
  width: 14px;
  height: 14px;
}
