/* Onboarding CSS extracted from WaterEject */
/* Water emoji hero icon */
.we-hero-emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

@media (max-width: 700px) {
  .we-hero-emoji {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 0.75rem;
  }
}

/* Inline install section — compact padding */
.download-cta-inline {
  padding: 1.5rem 0 0.5rem !important;
  border-top: none !important;
}

/* ═══════════════════════════════════════════════════════════
   ONBOARDING ACTIVE: collapse hero
   ═══════════════════════════════════════════════════════════ */
.we-ob-active .hero,
.we-ob-complete .hero {
  padding: 2rem 0 1rem;
}

.we-ob-active .hero-content,
.we-ob-complete .hero-content {
  grid-template-columns: 1fr;
  gap: 0;
}

/* Hide announcement bar during onboarding */
.we-ob-active .we-announcement-bar,
.we-ob-complete .we-announcement-bar {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   GOLDEN ANNOUNCEMENT BAR
   ═══════════════════════════════════════════════════════════ */
.we-announcement-bar {
  background: linear-gradient(90deg, #e5a215, #f59e0b, #fbbf24, #f59e0b, #e5a215);
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1c1917;
  letter-spacing: 0.02em;
  font-family: 'Inter', sans-serif;
}

.we-announcement-bar strong {
  font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════
   FLOATING SCROLL-TO-CLEAN BUTTON (FAB)
   ═══════════════════════════════════════════════════════════ */
.we-fab-clean {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 1;
  pointer-events: auto;
  transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.06em;
}

.we-fab-clean:hover {
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%) translateY(-2px);
}

.we-fab-clean:active {
  transform: translateX(-50%) translateY(0);
}

.we-fab-clean svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.we-fab-text {
  font-weight: 700;
}

.we-fab-clean::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.3);
  z-index: -1;
  opacity: 0;
  animation: weFabPulse 2.5s ease-in-out infinite;
}

@keyframes weFabPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.08); }
}

/* Hide FAB on desktop where button is usually visible */
@media (min-width: 901px) {
  .we-fab-clean {
    display: none;
  }
}

/* Hide FAB during/after onboarding */
body.we-ob-active .we-fab-clean,
body.we-ob-complete .we-fab-clean {
  display: none !important;
}

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

/* Hide hero CTA and install tray during onboarding */
body.we-ob-active .hero-cta,
body.we-ob-active .install-tray {
  display: none !important;
}

@media (max-width: 600px) {
  body.we-ob-active .we-wizard {
    min-height: 60vh;
  }
}

.we-wizard {
  display: grid;
  gap: 1rem;
  min-height: 280px;
}

.we-step-container {
  min-height: 220px;
}

/* Top progress bar */
.we-progress-bar-wrap {
  height: 4px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  overflow: hidden;
}

.we-progress-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 999px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.we-step-count {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--fg-muted, #666);
  font-family: 'Inter', system-ui, sans-serif;
}

/* Fade-in animation */
.we-fade-in {
  animation: weFadeIn 0.3s ease-out;
}

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

/* Question title with terminal marker */
.we-title-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.we-title-marker {
  color: #3b82f6;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
}

.we-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
  color: var(--fg, #000);
  letter-spacing: 0.1em;
  font-family: 'Inter', system-ui, sans-serif;
}

.we-subtitle {
  font-size: 0.78rem;
  color: var(--fg-muted, #666);
  margin: 0 0 1rem;
  text-align: center;
  line-height: 1.4;
}

/* Options — full-width stacked buttons */
.we-options {
  display: grid;
  gap: 0.5rem;
}

.we-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 10px;
  color: var(--fg, #000);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: left;
}

.we-option:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
}

.we-option:active {
  transform: scale(0.98);
}

.we-option.selected {
  background: rgba(59, 130, 246, 0.18);
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.we-option-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.we-option-label {
  flex: 1;
  line-height: 1.2;
}

.we-option-arrow {
  color: rgba(59, 130, 246, 0.4);
  font-size: 0.9rem;
  transition: color 0.2s, transform 0.2s;
}

.we-option:hover .we-option-arrow {
  color: #3b82f6;
  transform: translateX(2px);
}

/* Analysis phase — terminal log style */
.we-analysis {
  display: grid;
  gap: 0.75rem;
}

.we-analysis-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fg, #000);
  font-family: 'Inter', system-ui, sans-serif;
}

.we-analysis-blink {
  color: #3b82f6;
  animation: weBlink 1s step-end infinite;
}

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

.we-analysis-log {
  display: grid;
  gap: 0.4rem;
  max-height: 180px;
  overflow-y: auto;
  padding: 0.75rem;
  background: rgba(11, 18, 43, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 8px;
}

.we-log-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--fg-muted, #ccc);
  font-family: 'Inter', system-ui, sans-serif;
}

.we-log-spinner {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.we-log-spinner:not(.done)::after {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: weSpin 0.7s linear infinite;
}

.we-log-spinner.done {
  color: #34d399;
  font-weight: 700;
}

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

.we-analysis-bar-wrap {
  height: 4px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  overflow: hidden;
}

.we-analysis-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* Results phase */
.we-results {
  display: grid;
  gap: 0.85rem;
}

.we-results-badge {
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #34d399;
  letter-spacing: 0.1em;
  font-family: 'Inter', system-ui, sans-serif;
}

.we-results-table {
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 10px;
  padding: 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.we-results-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-family: 'Inter', system-ui, sans-serif;
}

.we-results-key {
  color: var(--fg-muted, #666);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.we-results-val {
  color: var(--fg, #000);
  font-weight: 700;
}

.we-results-recommend {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(29, 78, 216, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.we-recommend-label {
  font-weight: 700;
  font-size: 0.82rem;
  color: #fbbf24;
  letter-spacing: 0.08em;
  font-family: 'Inter', system-ui, sans-serif;
}

.we-recommend-text {
  font-size: 0.78rem;
  color: var(--fg-muted, #666);
  margin: 0;
  line-height: 1.45;
}

.we-results-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-muted, #666);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-family: 'Inter', system-ui, sans-serif;
}

.we-results-divider::before,
.we-results-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(59, 130, 246, 0.15);
}

/* Primary play button */
.we-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  border-radius: 24px;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.we-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(59, 130, 246, 0.5);
}

.we-play-btn:active {
  transform: translateY(0);
}

.we-play-btn svg {
  flex-shrink: 0;
}

.we-play-btn.playing {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: wePulseGlow 2s ease-in-out infinite;
}

@keyframes wePulseGlow {
  0%, 100% { box-shadow: 0 6px 24px rgba(239, 68, 68, 0.35); }
  50% { box-shadow: 0 6px 32px rgba(239, 68, 68, 0.6); }
}

.we-volume-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--fg-muted, #666);
  padding: 0.4rem 0.75rem;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  font-family: 'Inter', system-ui, sans-serif;
}

.we-articles-grid {
  display: grid;
  gap: 0.5rem;
}

.we-article-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.6rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.we-article-thumb {
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

/* Card 1 — Blue → Cyan */
.we-article-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.we-article-card:nth-child(1):hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.14));
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.we-article-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg, #000);
  font-family: 'Inter', system-ui, sans-serif;
}

/* Color-matched titles */
.we-article-card:nth-child(1) .we-article-title { color: #60a5fa; }
.we-article-card:nth-child(2) .we-article-title { color: #c084fc; }
.we-article-card:nth-child(3) .we-article-title { color: #34d399; }

.we-article-desc {
  font-size: 0.72rem;
  color: var(--fg-muted, #666);
  line-height: 1.35;
}
