/* 공유 바 — 계산기 사이트 공통(seo_common.py) */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 22px 0 6px;
  padding: 13px 16px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8e6);
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow, 0 6px 24px rgba(15, 30, 40, 0.06));
}
.share-note {
  margin: 0;
  color: var(--ink-soft, #6b8480);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--border, #dfe7e4);
  border-radius: 999px;
  background: var(--surface, #ffffff);
  color: var(--ink, #16221f);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}
.share-btn:hover {
  background: var(--surface-alt, #f1f5f4);
  border-color: var(--primary, #0f766e);
  color: var(--primary, #0f766e);
}
.share-btn:focus-visible {
  outline: 2px solid var(--primary, #0f766e);
  outline-offset: 2px;
}
.share-btn:active { transform: translateY(1px); }
.share-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.share-ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-ico-x { fill: currentColor; stroke: none; }
.share-btn-primary {
  background: var(--primary, #0f766e);
  border-color: var(--primary, #0f766e);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.22);
}
.share-btn-primary:hover {
  background: var(--primary-dark, #115e59);
  border-color: var(--primary-dark, #115e59);
  color: #ffffff;
}
.share-btn.is-done {
  background: var(--good-soft, #e8f5ef);
  border-color: var(--good, #1f7a5a);
  color: var(--good, #1f7a5a);
}
.share-btn-primary.is-done {
  background: var(--good, #1f7a5a);
  border-color: var(--good, #1f7a5a);
  color: #ffffff;
}
.share-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 9999;
  transform: translate(-50%, 14px);
  padding: 11px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink, #16221f);
  border: 1px solid var(--border, #dfe7e4);
  box-shadow: 0 12px 32px rgba(11, 35, 32, 0.22), 0 2px 6px rgba(11, 35, 32, 0.12);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.share-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) {
  .share-bar { padding: 12px 14px; gap: 10px; }
  .share-note { font-size: 12.5px; }
  .share-actions { width: 100%; margin-left: 0; gap: 7px; }
  .share-btn { flex: 1 1 0; min-width: 0; padding: 10px 8px; font-size: 13px; gap: 6px; }
  .share-toast { white-space: normal; text-align: center; max-width: 88vw; }
}
@media (prefers-reduced-motion: reduce) {
  .share-btn, .share-toast { transition: none; }
}
