/* ==========================================================================
   Haegyung Atomic Micro-UI Component Library v1.0
   Source Blueprint: 2026-09-25 Atomic Micro UI Design Specification
   Substrate: Hanji Warm Linen (#FAF8F5) & Petrol Teal (#134E5E) / Terracotta (#B43D17)
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* 1. Atom 1: HaegyungCardAtom (3-State Micro Transition)                     */
/* -------------------------------------------------------------------------- */
.hg-atom-card {
  background: var(--surface-card, #FFFFFF);
  border: 1px solid var(--hg-line-hairline, rgba(24, 24, 27, 0.08));
  border-radius: 12px;
  padding: clamp(24px, 3vw, 36px);
  color: var(--hg-ink, #18181B);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, border-color, box-shadow;
  cursor: pointer;
}

.hg-atom-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--hg-brand-primary, #134E5E);
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Hover State */
.hg-atom-card:hover {
  transform: translateY(-3px);
  border-color: rgba(19, 78, 94, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.hg-atom-card:hover::before {
  opacity: 1;
}

/* Active / Click State */
.hg-atom-card:active,
.hg-atom-card.is-active {
  transform: translateY(-1px) scale(0.995);
  border-color: var(--hg-brand-primary, #134E5E);
  box-shadow: 0 4px 14px rgba(19, 78, 94, 0.15);
}

.hg-atom-card.is-active::before {
  opacity: 1;
  background: var(--hg-brand-accent, #B43D17);
}

/* -------------------------------------------------------------------------- */
/* 2. Atom 2: HaegyungDrawerAtom (4-Keyframe Unfolding Transition)           */
/* -------------------------------------------------------------------------- */
.hg-atom-drawer {
  margin-top: 24px;
  background: var(--surface-card, #FFFFFF);
  border: 1px solid var(--hg-line-divider, rgba(24, 24, 27, 0.14));
  border-radius: 12px;
  padding: clamp(24px, 3.5vw, 36px);
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hg-atom-drawer.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.hg-atom-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--hg-line-hairline, rgba(24, 24, 27, 0.08));
}

.hg-atom-drawer__tag {
  font-family: var(--hg-font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hg-brand-accent, #B43D17);
}

.hg-atom-drawer__quote {
  font-family: var(--hg-font-heading, "Noto Serif KR", serif);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.8;
  color: var(--hg-ink, #18181B);
  margin: 0 0 20px 0;
  padding-left: 18px;
  border-left: 3px solid var(--hg-brand-primary, #134E5E);
  word-break: keep-all;
}

.hg-atom-drawer__action {
  font-family: var(--hg-font-heading, "Noto Serif KR", serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--hg-brand-primary, #134E5E);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.hg-atom-drawer__action:hover {
  color: var(--hg-brand-accent, #B43D17);
}

/* -------------------------------------------------------------------------- */
/* 3. Atom 3: HaegyungQuestionSwitcherAtom (Particle & Vector Shift)          */
/* -------------------------------------------------------------------------- */
.hg-atom-switcher {
  background: var(--surface-card, #FFFFFF);
  border: 1px dashed var(--hg-line-divider, rgba(24, 24, 27, 0.14));
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 14px;
  transition: border-color 0.25s ease;
}

.hg-atom-switcher__asis {
  font-size: 0.85rem;
  color: var(--hg-brand-accent, #B43D17);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  margin-bottom: 6px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.hg-atom-switcher__tobe {
  font-family: var(--hg-font-heading, "Noto Serif KR", serif);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--hg-ink, #18181B);
  line-height: 1.55;
  transition: color 0.2s ease, transform 0.2s ease;
  word-break: keep-all;
}

.hg-atom-switcher__btn {
  margin-top: 12px;
  font-family: var(--hg-font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  background: transparent;
  border: 1px solid var(--hg-line-hairline, rgba(24, 24, 27, 0.08));
  border-radius: 4px;
  padding: 5px 12px;
  color: var(--hg-brand-primary, #134E5E);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.hg-atom-switcher__btn:hover {
  background: rgba(19, 78, 94, 0.08);
  border-color: var(--hg-brand-primary, #134E5E);
}
