/* /assets/css/share-card.css — HOTLINE242 beige share card */
.h242-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.58);
}

.h242-share-sheet.is-open {
  display: flex;
  animation: h242ShareFade .16s ease-out;
}

.h242-share-card {
  width: min(570px, calc(100% - 18px));
  border-radius: 24px;
  border: 2px solid var(--h242-black, #090909);
  background: var(--h242-beige, #f6f0e6);
  color: #111;
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
  transform: translateY(-7vh);
  animation: h242SharePop .18s cubic-bezier(.2,.9,.2,1);
}

.h242-share-inner {
  margin: 7px;
  padding: 15px 15px 17px;
  border: 1.5px solid rgba(0,0,0,.84);
  border-radius: 19px;
  background:
    radial-gradient(circle at top left, rgba(37,244,232,.20), transparent 32%),
    radial-gradient(circle at bottom right, rgba(246,196,83,.22), transparent 30%),
    rgba(246,240,230,.96);
}

.h242-share-handle {
  width: 48px;
  height: 6px;
  margin: 1px auto 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.16);
}

.h242-share-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.h242-share-title {
  font-size: 21px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: .2px;
  color: var(--h242-black, #090909);
}

.h242-share-subtitle,
.h242-share-tips,
.h242-share-preview-desc,
.h242-share-preview-url {
  color: rgba(9,9,9,.70);
}

.h242-share-subtitle {
  margin-top: 7px;
  font-size: .92rem;
  line-height: 1.35;
}

.h242-share-close {
  border: 1px solid rgba(0,0,0,.24);
  background: rgba(255,255,255,.58);
  color: #111;
  border-radius: 14px;
  padding: 7px 11px;
  font-weight: 800;
  line-height: 1;
}

.h242-share-preview {
  margin-top: 14px;
  border-radius: 18px;
  border: 1.5px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.54);
  padding: 13px;
}

.h242-share-preview {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.h242-share-badge {
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  font-size: 21px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.h242-share-preview-text {
  min-width: 0;
}

.h242-share-preview-title {
  font-weight: 950;
  line-height: 1.12;
  color: #111;
}

.h242-share-preview-desc {
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.3;
}

.h242-share-preview-url {
  margin-top: 8px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.h242-share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.h242-share-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.30);
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.h242-share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.h242-share-btn:active {
  transform: translateY(0) scale(.985);
}

.h242-share-native { background: #111; color: #fff; }
.h242-share-wa { background: #25D366; color: #fff; }
.h242-share-fb { background: #1877F2; color: #fff; }
.h242-share-x { background: #000; color: #fff; }
.h242-share-copy { background: #2f343a; color: #fff; }

.h242-share-tips {
  margin-top: 13px;
  font-size: 13px;
  line-height: 1.45;
}

.h242-share-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 9999;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  padding: 10px 13px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.76);
  color: #fff;
  font-weight: 800;
  transition: opacity .16s ease, transform .16s ease;
}

.h242-share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes h242ShareFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes h242SharePop {
  from { transform: translateY(-6vh) scale(.985); opacity: .7; }
  to { transform: translateY(-7vh) scale(1); opacity: 1; }
}

@media (max-width: 520px) {
  .h242-share-sheet { padding: 12px; align-items: flex-end; }
  .h242-share-card { width: 100%; transform: translateY(0); border-radius: 22px 22px 18px 18px; }
  .h242-share-top { align-items: flex-start; }
  .h242-share-title { font-size: 19px; }
  .h242-share-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .h242-share-sheet.is-open,
  .h242-share-card { animation: none !important; }
  .h242-share-btn,
  .h242-share-toast { transition: none !important; }
}
