/* components.css — GlowAI Reusable Components
   Aloha from Pearl City! */

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */

.btn-pink {
  flex: 1; padding: 15px; border-radius: var(--radius-lg); border: none;
  background: linear-gradient(135deg, var(--rose), var(--rose2));
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(232,165,152,0.34);
  cursor: pointer;
}

.btn-outline {
  flex: 1; padding: 15px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--rose);
  background: transparent; color: var(--rose2);
  font-size: 15px; font-weight: 600; cursor: pointer;
}

.btn-save {
  width: 100%; padding: 16px; border-radius: var(--radius-lg); border: none;
  margin-top: var(--space-md);
  background: linear-gradient(135deg, var(--rose), var(--rose2));
  color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(232,165,152,0.32);
  cursor: pointer;
}

.btn-ghost {
  width: 100%; padding: 13px; border-radius: var(--radius-md);
  border: 1.5px solid #eee; background: transparent;
  color: #bbb; font-size: 13px; cursor: pointer; margin-top: 10px;
}

.btn-demo {
  width: 100%; padding: 13px; border-radius: var(--radius-md);
  border: 1.5px solid var(--rose); background: transparent;
  color: var(--rose2); font-size: 14px; font-weight: 600;
  cursor: pointer; margin-top: 10px; transition: all 0.2s;
}
.btn-demo.on {
  background: linear-gradient(135deg, var(--rose), var(--rose2));
  color: #fff; border-color: transparent;
}

/* ═══════════════════════════════════
   BOTTOM SHEETS
═══════════════════════════════════ */

#sheet-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(5px);
  display: none;
}
#sheet-overlay.open { display: block; }

.sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: #fff; color: #111;
  max-height: 88vh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.36s var(--ease-out);
}
.sheet.open { transform: translateY(0); }
.sheet-handle { width: 38px; height: 4px; border-radius: 2px; background: #e0e0e0; margin: 14px auto 0; }
.sheet-title  { padding: 18px 24px 6px; font-family: var(--font-heading); font-size: 25px; font-weight: 700; color: #111; }
.sheet-body   { padding: 10px 24px var(--space-2xl); }

/* ═══════════════════════════════════
   CHIPS
═══════════════════════════════════ */

.chips-grid { display: flex; flex-wrap: wrap; gap: var(--space-sm); padding: 6px 0; }

.c-chip {
  padding: 8px 15px; border-radius: var(--radius-pill);
  border: 1.5px solid #eee; font-size: 13px; font-weight: 500;
  color: #666; cursor: pointer; transition: all 0.15s;
  background: #fff; user-select: none;
}
.c-chip.on {
  background: linear-gradient(135deg, var(--rose), var(--sage));
  border-color: transparent; color: #fff; font-weight: 700;
  box-shadow: 0 3px 12px rgba(232,165,152,0.28);
}

/* ═══════════════════════════════════
   BADGES
═══════════════════════════════════ */

.skin-badge {
  display: inline-block; margin: 6px auto;
  background: linear-gradient(135deg, var(--rose), var(--rose2));
  color: #fff; border-radius: var(--radius-pill);
  padding: 6px 22px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(232,165,152,0.34);
}

/* ═══════════════════════════════════
   FORM FIELDS
═══════════════════════════════════ */

.field-lbl {
  font-size: 11.5px; font-weight: 600; color: #999;
  letter-spacing: 0.09em; text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.field-input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-md);
  border: 1.5px solid #eee; background: #F8F8F8;
  font-size: 15px; color: #111; outline: none;
  font-family: var(--font-mono);
  transition: border-color 0.2s;
}
.field-input:focus { border-color: var(--rose); }

/* ═══════════════════════════════════
   FLOATING DRAGGABLE ICONS
═══════════════════════════════════ */

.float-icon {
  position: fixed;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-soft);
  cursor: pointer; z-index: 500;
  touch-action: none; user-select: none;
}
.float-icon.pink {
  background: linear-gradient(135deg, rgba(232,165,152,0.92), rgba(212,130,110,0.92));
  border-color: rgba(232,165,152,0.4);
  box-shadow: var(--shadow-glow);
}
#float-analyze { width: 72px; height: 72px; font-size: 30px; display: none; }
#float-analyze.show { display: flex; }
#float-concerns { width: auto; border-radius: 30px; padding: 0 18px; font-size: 13px; font-weight: 600; height: 44px; white-space: nowrap; }

/* ═══════════════════════════════════
   RESULT CARDS
═══════════════════════════════════ */

.score-wrap { display: flex; flex-direction: column; align-items: center; padding: 14px 0 4px; }
.result-summary { font-size: 13.5px; line-height: 1.72; color: #555; text-align: center; margin: 10px 0 18px; }
.sec-title { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: #111; margin: 18px 0 9px; }
.result-actions { display: flex; gap: 10px; margin-top: var(--space-lg); }

.concern-card { background: #F7F7F7; border-radius: var(--radius-lg); padding: 13px 15px; margin-bottom: 9px; }
.concern-name { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 5px; }
.bar-track    { height: 5px; background: #eaeaea; border-radius: 3px; margin-bottom: 7px; }
.bar-fill     { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--rose), var(--sage)); width: 0; transition: width 1s var(--ease-spring); }
.concern-expl { font-size: 12.5px; color: #666; line-height: 1.6; }

.rec-card   { background: #F7F7F7; border-radius: var(--radius-lg); padding: 13px 15px; margin-bottom: 9px; display: flex; gap: 11px; }
.rec-num    { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--sage), var(--sage2)); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; }
.rec-action { font-size: 13.5px; font-weight: 600; color: #111; margin-bottom: 3px; }
.rec-why    { font-size: 12px; color: #777; line-height: 1.55; }

/* ═══════════════════════════════════
   HISTORY
═══════════════════════════════════ */

.hist-item        { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2f2f2; cursor: pointer; }
.hist-thumb       { width: 54px; height: 54px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; background: #f0f0f0; }
.hist-placeholder { width: 54px; height: 54px; border-radius: var(--radius-md); background: linear-gradient(135deg, #FFB3CC, #FF4E8C); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.hist-date  { font-size: 12px; color: #999; margin-top: 2px; }
.hist-score { font-size: 20px; font-weight: 800; color: var(--rose2); margin-left: auto; }
