/* =============================================
   WX Skin Index™ — "What to Wear" Card
   v2.0 — Complete visual redesign
   ============================================= */

/* ── CARD CONTAINER ──────────────────────── */
#outfitCard {
  display: none;
  position: relative;
  margin: 16px 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
}

/* Tier-reactive gradient — color set via JS inline style --outfit-color */
#outfitCard::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.10;
  background: linear-gradient(135deg, var(--outfit-color, #ffb347) 0%, transparent 55%),
              linear-gradient(315deg, var(--outfit-color, #ffb347) 0%, transparent 55%);
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#outfitCard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.10);
  pointer-events: none;
}
#outfitCard > * { position: relative; z-index: 1; }

/* ── HEADER ──────────────────────────────── */
.outfit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.outfit-header:hover { opacity: 0.85; }
.outfit-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.outfit-header-emoji {
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}
.outfit-header-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.outfit-toggle {
  font-size: 1rem;
  color: var(--text-faint);
  transition: transform 0.3s ease;
}

/* ── PERSONAL BADGE ──────────────────────── */
.outfit-personal-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(255,210,100,0.2), rgba(255,150,50,0.15));
  color: #e8a317;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid rgba(232,163,23,0.2);
  vertical-align: middle;
}

/* ── BODY ────────────────────────────────── */
.outfit-body {
  padding: 0 22px 22px;
}

/* ── TIER STRIP — 5-pip clothing scale ──── */
.outfit-tier-strip {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  height: 5px;
}
.outfit-tier-pip {
  flex: 1;
  border-radius: 3px;
  opacity: 0.20;
  transition: all 0.5s cubic-bezier(.4,0,.2,1);
}
.outfit-tier-pip.active {
  opacity: 1;
  box-shadow: 0 0 12px var(--pip-color);
  transform: scaleY(1.8);
  border-radius: 4px;
}

.outfit-tier-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 2px;
}
.outfit-tier-label {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  opacity: 0.4;
  transition: all 0.3s ease;
}
.outfit-tier-label.active {
  opacity: 1;
  color: var(--text);
  font-size: 0.62rem;
}

/* ── HERO REC SECTION ────────────────────── */
.outfit-hero {
  text-align: center;
  margin-bottom: 18px;
}
.outfit-hero-emoji {
  font-size: 3.2rem;
  line-height: 1;
  display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.12));
  animation: outfitPop 0.6s cubic-bezier(.4,0,.2,1) both;
}
@keyframes outfitPop {
  0% { transform: scale(0.2) rotate(-15deg); opacity: 0; }
  50% { transform: scale(1.15) rotate(3deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.outfit-hero-rec {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.outfit-hero-tip {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
}

/* ── CONTEXT BAR — feels like + conditions ─ */
.outfit-context {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.025);
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dim);
}
[data-theme="dark"] .outfit-context { background: rgba(255,255,255,0.035); }
.outfit-context-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.outfit-context-val {
  color: var(--text);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* ── WEATHER TWEAKS — pill badges ────────── */
.outfit-tweaks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.outfit-tweak {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 99px;
  padding: 6px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}
.outfit-tweak:hover {
  transform: translateY(-1px);
}

/* ── DIVIDER ─────────────────────────────── */
.outfit-divider {
  width: 36px;
  height: 2px;
  background: var(--card-border);
  margin: 0 auto 16px;
  border-radius: 2px;
}

/* ── FEEDBACK ────────────────────────────── */
.outfit-feedback { text-align: center; }
.outfit-feedback-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.outfit-feedback-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.outfit-fb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--card);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 24px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  font-family: var(--font-body);
  min-width: 82px;
}
.outfit-fb-btn .fb-emoji {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.outfit-fb-btn .fb-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.outfit-fb-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  border-color: var(--outfit-color, #ffb347);
}
.outfit-fb-btn:hover .fb-emoji {
  transform: scale(1.3);
}
.outfit-fb-btn:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.outfit-fb-btn.outfit-fb-ok { border-color: rgba(74,222,128,0.25); }
.outfit-fb-btn.outfit-fb-ok:hover {
  border-color: #4ade80;
  background: rgba(74,222,128,0.05);
}

/* ── THANKS STATE ────────────────────────── */
.outfit-feedback-thanks {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  padding: 10px 0;
  animation: outfitThanks 0.5s cubic-bezier(.4,0,.2,1) both;
}
@keyframes outfitThanks {
  0% { transform: scale(0.7) translateY(8px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ── MOBILE ──────────────────────────────── */
@media (max-width: 640px) {
  #outfitCard { margin: 12px 0; }
  .outfit-header { padding: 16px 18px; }
  .outfit-body { padding: 0 18px 18px; }
  .outfit-hero-emoji { font-size: 2.6rem; }
  .outfit-hero-rec { font-size: 1.05rem; }
  .outfit-tweak { font-size: 0.73rem; padding: 5px 11px; }
  .outfit-fb-btn { padding: 10px 18px; min-width: 72px; }
  .outfit-fb-btn .fb-emoji { font-size: 1.5rem; }
  .outfit-context { gap: 10px; font-size: 0.73rem; }
}
@media (max-width: 380px) {
  .outfit-hero-emoji { font-size: 2.2rem; }
  .outfit-hero-rec { font-size: 0.96rem; }
  .outfit-fb-btn { padding: 8px 14px; min-width: 62px; }
  .outfit-context { gap: 6px; }
}
/* === v3.0: 4-Hour Forecast Timeline === */
.outfit-forecast { margin: 18px 0; padding: 16px; background: rgba(0,0,0,0.03); border-radius: 12px; border: 1px solid rgba(0,0,0,0.04); }
[data-theme="dark"] .outfit-forecast { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); }
.outfit-forecast-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.outfit-forecast-title { font-family: var(--font-display); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.outfit-forecast-trend { font-size: 0.68rem; font-weight: 700; color: var(--text-faint); }
.outfit-forecast-timeline { display: flex; justify-content: space-around; align-items: flex-start; position: relative; padding: 0 8px; }
.outfit-forecast-line { position: absolute; top: 18px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.12) 50%, rgba(0,0,0,0.06) 100%); border-radius: 2px; z-index: 0; }
[data-theme="dark"] .outfit-forecast-line { background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%); }
.outfit-forecast-pip { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; z-index: 1; flex: 1; min-width: 0; }
.outfit-forecast-dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all 0.3s ease; border: 2px solid rgba(255,255,255,0.3); }
.outfit-forecast-pip:first-child .outfit-forecast-dot { width: 42px; height: 42px; font-size: 1.3rem; border-width: 3px; }
.outfit-forecast-score { font-family: var(--font-display); font-size: 0.82rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.outfit-forecast-pip:first-child .outfit-forecast-score { font-size: 0.95rem; }
.outfit-forecast-hour { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.outfit-forecast-pip:first-child .outfit-forecast-hour { color: var(--text); font-size: 0.68rem; }
.outfit-forecast-time { font-size: 0.58rem; font-weight: 600; color: var(--text-faint); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .outfit-forecast { padding: 12px; margin: 14px 0; } .outfit-forecast-dot { width: 30px; height: 30px; font-size: 0.95rem; } .outfit-forecast-pip:first-child .outfit-forecast-dot { width: 36px; height: 36px; font-size: 1.1rem; } .outfit-forecast-score { font-size: 0.75rem; } }
@media (max-width: 380px) { .outfit-forecast-dot { width: 26px; height: 26px; font-size: 0.82rem; } .outfit-forecast-pip:first-child .outfit-forecast-dot { width: 30px; height: 30px; } .outfit-forecast-line { top: 14px; } }
