/* ============================================================
   Sionic Tech Blog — 작성글 시작 화면 공용 모듈 (단일 소스)
   브레드크럼 · 작성자 메타(아바타·칩·날짜·태그·다크 토글) · 문서 내용 듣기(TTS)
   함께 사용: assets/post-meta.js + window.SIONIC_POST_META 설정
   스킬은 이 모듈을 갖다 쓰고, 이 UI를 글마다 다시 만들지 않는다.
   테마 변수(--si-*)가 없는 페이지에서도 동작하도록 fallback을 둔다.
   ============================================================ */

.sb-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--si-ink-4, #8494A5); margin-bottom: 22px; }
.sb-breadcrumb a { color: var(--si-accent-2, #2E8B89); font-weight: 650; text-decoration: none; }
.sb-breadcrumb a:hover { text-decoration: underline; }

.sb-artmeta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.sb-author { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--si-ink, #0E1B2C); }
.sb-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--si-grad, linear-gradient(135deg, #3FA9A6, #33CFE5));
  color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.sb-avatar::before { content: attr(data-initial); }
.sb-lb {
  font-size: 12px; font-weight: 700; letter-spacing: .01em; text-decoration: none;
  padding: 3.5px 11px; border-radius: 99px; white-space: nowrap; transition: all .15s ease;
}
.sb-lb-cat { background: color-mix(in srgb, var(--si-accent-2, #2E8B89) 12%, transparent); color: var(--si-accent-2, #2E8B89); }
.sb-lb-cat:hover { background: var(--si-accent-2, #2E8B89); color: #fff; }
.sb-lb-role {
  background: transparent; color: var(--si-ink-3, #4B5A6B); border: 1px solid var(--si-border-2, #D8DFE5);
  display: inline-flex; align-items: center; gap: 6px;
}
.sb-lb-role::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sb-role-c, #D98E4A); }
.sb-lb-role:hover { border-color: var(--sb-role-c, #D98E4A); color: var(--si-ink, #0E1B2C); }
.sb-date { font-size: 14px; color: var(--si-ink-4, #8494A5); }
.sb-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.sb-tag {
  font-size: 12.5px; font-weight: 650; color: var(--si-accent-2, #2E8B89);
  background: color-mix(in srgb, var(--si-accent-2, #2E8B89) 12%, transparent);
  padding: 4px 12px; border-radius: 4px;
}
@media (max-width: 640px) { .sb-tags { margin-left: 0; } }

#sb-theme {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 32px; padding: 4px 12px; cursor: pointer; background: none;
  font-family: var(--font-mono, ui-monospace, Menlo, monospace); letter-spacing: .12em;
  font-size: 10px; font-weight: 600;
  color: var(--si-ink-3, #4B5A6B); border: 1px solid var(--si-border-2, #D8DFE5);
  border-radius: var(--r-sharp, 4px);
  transition: color .14s ease-out, border-color .14s ease-out;
}
#sb-theme:hover { color: var(--si-ink, #0E1B2C); border-color: var(--si-ink-3, #4B5A6B); }

.sb-listen { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.sb-listen-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; flex-shrink: 0;
  background: color-mix(in srgb, var(--si-accent-2, #2E8B89) 12%, transparent);
  color: var(--si-accent-2, #2E8B89);
  display: flex; align-items: center; justify-content: center; transition: all .18s ease;
}
.sb-listen-btn:hover { background: var(--si-accent-2, #2E8B89); color: #fff; }
.sb-listen-btn svg { display: block; }
.sb-listen-btn .sb-i-play { margin-left: 2px; }
.sb-listen-label { font-size: 14px; font-weight: 650; color: var(--si-ink-3, #4B5A6B); }
.sb-listen-time {
  border-left: 1px solid var(--si-border, #E6EBEF); padding-left: 12px;
  font-size: 14px; font-weight: 600; color: var(--si-ink-4, #8494A5); font-variant-numeric: tabular-nums;
}
.sb-listen-skip {
  width: 34px; height: 34px; border: 0; background: none; color: var(--si-ink-3, #4B5A6B); cursor: pointer;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0; transition: all .18s ease;
}
.sb-listen-skip:hover { background: var(--sf-panel, #F6F9FA); color: var(--si-ink, #0E1B2C); }
.sb-listen-rate {
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--si-ink-3, #4B5A6B); font-variant-numeric: tabular-nums;
  border: 1.5px solid var(--si-border-2, #D8DFE5); background: none; border-radius: 999px; padding: 5px 13px; cursor: pointer; transition: all .18s ease;
}
.sb-listen-rate:hover { border-color: var(--si-accent-2, #2E8B89); color: var(--si-accent-2, #2E8B89); }
.sb-listen-share {
  margin-left: auto; display: flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 14px; font-weight: 650; color: var(--si-ink-3, #4B5A6B);
  background: none; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 8px; transition: all .18s ease;
}
.sb-listen-share:hover { color: var(--si-ink, #0E1B2C); background: var(--sf-panel, #F6F9FA); }
.sb-listen-share.sb-copied { color: var(--si-accent-2, #2E8B89); }
.tts-reading {
  background: color-mix(in srgb, var(--si-accent-2, #2E8B89) 12%, transparent);
  border-radius: 6px;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--si-accent-2, #2E8B89) 12%, transparent);
  transition: background .25s ease, box-shadow .25s ease;
}
