/* screens.css — GlowAI Per-Screen Styles
   Aloha from Pearl City! */

/* ═══════════════════════════════════
   SPLASH
═══════════════════════════════════ */

#splash { background: var(--bg-dark); }

.splash-logo {
  font-family: var(--font-heading);
  font-size: 56px; font-weight: 900; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--rose) 55%, var(--blush) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: fadeUp 0.9s ease both;
}
.splash-tagline {
  font-family: var(--font-heading);
  font-size: 16px; font-style: italic; font-weight: 400;
  color: rgba(255,255,255,0.52); margin-top: 10px;
  animation: fadeUp 0.9s 0.18s ease both;
}
.splash-sub {
  font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255,255,255,0.22); margin-top: var(--space-lg);
  animation: fadeUp 0.9s 0.35s ease both;
}

/* ═══════════════════════════════════
   ONBOARDING
═══════════════════════════════════ */

#onboarding { background: var(--bg-dark); flex-direction: column; padding: 0 28px; }

.ob-step { display: none; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 340px; }
.ob-step.active { display: flex; animation: fadeUp 0.5s ease both; }

.ob-num {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 28px; font-weight: 600;
}
.ob-icon { font-size: 62px; margin-bottom: var(--space-lg); }
.ob-title {
  font-family: var(--font-heading); font-size: 26px; font-weight: 700;
  color: #fff; line-height: 1.25; margin-bottom: 12px;
}
.ob-body { font-size: 14px; line-height: 1.72; color: rgba(255,255,255,0.52); margin-bottom: var(--space-xl); }

.ob-btn {
  width: 100%; padding: 16px; border-radius: var(--radius-lg); border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--rose), var(--rose2));
  color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: var(--shadow-rose);
  transition: opacity 0.15s;
}
.ob-btn:active { opacity: 0.84; }
.ob-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.ob-skip {
  margin-top: 16px; background: none; border: none;
  color: rgba(255,255,255,0.28); font-size: 13px; cursor: pointer; padding: 8px;
}

.ob-dots { display: flex; gap: 7px; margin-bottom: 32px; }
.ob-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.18); transition: background 0.3s; }
.ob-dot.on { background: var(--rose); }

/* Skin type picker chips */
.ob-types { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-bottom: 24px; }
.ob-type-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  width: 100%; padding: 14px 18px; border-radius: var(--radius-lg);
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05); color: #fff;
  font-size: 15px; font-weight: 600; text-align: left;
  cursor: pointer; transition: all 0.2s;
}
.ob-type-chip .ob-type-hint {
  font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.38); line-height: 1.4;
}
.ob-type-chip.selected {
  background: linear-gradient(135deg, rgba(232,165,152,0.18), rgba(212,130,110,0.12));
  border-color: var(--rose);
  box-shadow: 0 0 18px rgba(232,165,152,0.22);
}
.ob-type-chip.selected .ob-type-hint { color: rgba(255,255,255,0.55); }

/* ═══════════════════════════════════
   SCAN
═══════════════════════════════════ */

#scan { background: var(--bg-dark); }

.photo-zone {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
#scan-photo { width: 100%; height: 100%; object-fit: cover; display: none; }

#scan-placeholder {
  display: flex; flex-direction: column;
  align-items: center; gap: 18px; pointer-events: none;
}
.scan-ring {
  width: 230px; height: 230px; border-radius: 50%;
  border: 1.5px solid rgba(232,165,152,0.18);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 80px rgba(232,165,152,0.14), inset 0 0 50px rgba(212,175,130,0.07);
}
.scan-ring::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(232,165,152,0.26);
  animation: rPulse 2.4s ease-in-out infinite;
}
.scan-ring::after {
  content: ''; position: absolute; inset: -22px; border-radius: 50%;
  border: 1px solid rgba(168,184,156,0.14);
  animation: rPulse 2.4s 0.5s ease-in-out infinite;
}
.scan-icon  { font-size: 68px; }
.scan-label { font-family: var(--font-heading); font-size: 23px; font-weight: 700; color: rgba(255,255,255,0.82); }
.scan-sub   { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.3); }

/* ── Analyze CTA bar ── */
#analyze-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(8,8,8,0.95) 60%, transparent);
  display: none; flex-direction: column; align-items: center; gap: 10px;
}
#analyze-bar.show { display: flex; animation: fadeUp 0.35s ease both; }
.analyze-cta {
  width: 100%; max-width: 360px; padding: 18px 24px;
  border-radius: 16px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--rose), var(--rose2));
  color: #fff; font-size: 17px; font-weight: 700;
  box-shadow: 0 6px 28px rgba(232,165,152,0.45);
  transition: transform 0.15s, opacity 0.15s;
  letter-spacing: 0.01em;
}
.analyze-cta:active { transform: scale(0.97); opacity: 0.88; }
.analyze-hint { font-size: 11.5px; color: rgba(255,255,255,0.35); letter-spacing: 0.06em; }

/* ═══════════════════════════════════
   ANALYZING OVERLAY
═══════════════════════════════════ */

#analyzing {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(8,8,8,0.88); backdrop-filter: blur(10px);
  display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
}
#analyzing.show { display: flex; }
.spin { font-size: 46px; animation: rotate 2s linear infinite; }
.ana-title { font-family: var(--font-heading); font-size: 21px; color: #fff; }
.ana-sub   { font-size: 11.5px; color: rgba(255,255,255,0.38); letter-spacing: 0.15em; text-transform: uppercase; }
