/* ── Itdasy Design System v1 · components.css ──────────────────────
   §5 핵심 컴포넌트 베이스. 기존 클래스(btn-main 등) 건드리지 않음.
   신규 클래스만 추가 — 점진적으로 기존 클래스 대체 예정. */

/* ── §5.2 Main CTA ─────────────────────────────────────────────── */
.main-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 2px solid var(--brand-bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-decoration: none;
  color: inherit;
}

.main-cta:active {
  transform: scale(.985);
  box-shadow: var(--shadow-sm);
}

.main-cta__icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--brand-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}

.main-cta__title {
  font-size: 15px; font-weight: 700; color: var(--text);
  letter-spacing: -0.3px; line-height: 1.3;
}

.main-cta__sub {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  margin-top: 2px;
}

.main-cta__arrow {
  margin-left: auto; flex-shrink: 0;
  color: var(--brand);
}

/* ── §5.4 Chip / Tag ───────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}

.chip--active {
  background: var(--brand-bg);
  color: var(--brand);
  border-color: var(--brand);
  font-weight: 700;
}

.chip--ok {
  background: rgba(22,181,94,.10);
  color: #0d8f49;
  border-color: rgba(22,181,94,.25);
}

.chip--warn {
  background: rgba(245,158,11,.10);
  color: #92600a;
  border-color: rgba(245,158,11,.25);
}

.chip--danger {
  background: rgba(239,68,68,.10);
  color: #b91c1c;
  border-color: rgba(239,68,68,.25);
}

.chip:active { transform: scale(0.96); }

/* ── §5.11 Banner ──────────────────────────────────────────────── */
.banner {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.banner__cta {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

.banner--warn  {
  background: #FFF6E4;
  color: #8B5A00;
  border-left: 3px solid var(--warn);
}

.banner--danger {
  background: #FEECEC;
  color: #A5251E;
  border-left: 3px solid var(--danger);
}

.banner--info  {
  background: var(--brand-bg);
  color: var(--brand-strong);
  border-left: 3px solid var(--brand);
}

/* ── §5.14 Primary Button ──────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--r-md);
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, background 0.1s;
  width: 100%;
}

.btn-primary:active:not(:disabled) {
  transform: scale(.985);
  background: var(--brand-strong);
}

.btn-primary:disabled {
  background: var(--surface-2);
  color: var(--text-subtle);
  cursor: not-allowed;
}

/* pink-glow-pulse — 홈 최초 진입 시 메인 CTA 강조 */
@keyframes pink-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(241,128,145,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(241,128,145,0); }
}
.btn-primary--pulse { animation: pink-glow-pulse 3s ease infinite; }

/* ── §5.15 Secondary Button ────────────────────────────────────── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border-strong);
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}
.btn-secondary:active:not(:disabled) { background: var(--surface-2); }

.btn-secondary:disabled {
  color: var(--text-subtle);
  cursor: not-allowed;
}

/* prefers-reduced-motion — 신규 keyframe off */
@media (prefers-reduced-motion: reduce) {
  .btn-primary--pulse { animation: none; }
}
