/* Highlight-card share button + customize bottom-sheet.
   Paired with assets/js/pages/highlight-card.js. All visuals use design
   tokens; the JS sets no inline styles. */

/* ---- inline share trigger ---- */
.share-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease),
              color var(--motion-fast) var(--ease);
}
.share-card-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.share-card-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* ---- scrim ---- */
.hc-scrim {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.hc-scrim[hidden] { display: none; }

/* ---- bottom sheet ---- */
.hc-sheet {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--elev-3);
  padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  animation: hc-slide-up var(--motion-slow) var(--ease-out);
}
@keyframes hc-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hc-sheet { animation: none; }
}

/* ---- close button ---- */
.hc-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-mute);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.hc-close:hover { color: var(--text); border-color: var(--border-strong); }

/* ---- preview canvas ---- */
.hc-preview {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1080 / 1920;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: var(--elev-2);
}

/* ---- name field ---- */
.hc-field-label {
  display: block;
  margin: 18px 0 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-mute);
}
.hc-name-input {
  display: block;
  width: 100%;
  margin-top: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  color: var(--text);
  font-size: 14px;
}
.hc-name-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---- background photo control ---- */
.hc-bg-row { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.hc-bg-add { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--t-13); color: var(--accent); cursor: pointer; }
.hc-bg-input { font-size: var(--t-12); color: var(--text-mute); max-width: 60%; }
.hc-bg-remove { background: transparent; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-mute); font-size: var(--t-12); padding: 4px 10px; cursor: pointer; }
.hc-bg-remove:hover { color: var(--text); }
.hc-bg-add[hidden], .hc-bg-remove[hidden] { display: none; }

/* ---- checkbox rows ---- */
.hc-checks {
  margin-top: 12px;
}
.hc-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.hc-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ---- action buttons ---- */
.hc-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.hc-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
}
.hc-btn[hidden] { display: none; }
.hc-btn--share {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1407;
}
.hc-btn--share:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.hc-btn--download {
  background: var(--surface-2);
  color: var(--text);
}
.hc-btn--download:hover { border-color: var(--accent); color: var(--accent); }
