/* Share Modal Component - YouTube-like simple share dialog */
:root {
  --sm-backdrop: rgba(15, 23, 42, 0.55);
  --sm-card-bg: #fff;
  --sm-border: #E5E7EB;
  --sm-text: #111827;
  --sm-muted: #6B7280;
  --sm-primary: #3A5A40; /* site leaf color */
}

.share-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--sm-backdrop);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.share-modal-backdrop.active { display: flex; }

.share-modal {
  width: min(560px, calc(100% - 32px));
  background: var(--sm-card-bg);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  border: 1px solid var(--sm-border);
  overflow: hidden;
  animation: sm-pop .18s ease-out;
}

@keyframes sm-pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.share-modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--sm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.share-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sm-text);
}

.share-modal-close {
  background: transparent;
  border: none;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--sm-muted);
  border-radius: 8px;
  cursor: pointer;
}
.share-modal-close:hover { background: #F3F4F6; color: #111827; }

.share-modal-body { padding: 16px 18px; }

/* URL copy row */
.share-url-row { display: flex; gap: 8px; margin-bottom: 14px; }
.share-url-input {
  flex: 1 1 auto;
  height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--sm-border);
  border-radius: 8px;
  font-size: .95rem;
  color: #111827;
  background: #FAFAFA;
}

.share-copy-btn {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--sm-border);
  background: #fff;
  color: #111827;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.share-copy-btn:hover { background: #EEF2FF; border-color: #C7D2FE; }

/* Platforms grid */
.share-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

@media (max-width: 520px) {
  .share-grid { grid-template-columns: repeat(4, 1fr); }
}

.share-item {
  text-align: center;
}

.share-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--sm-border);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: #111827;
  cursor: pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}

.share-btn:hover { background: #F9FAFB; border-color: #D1D5DB; }
.share-btn:active { transform: translateY(1px); }

.share-label { display: block; margin-top: 6px; font-size: .8rem; color: #4B5563; }

/* Brand tints */
.share-btn.fb { color: #1877F2; }
.share-btn.tw { color: #1DA1F2; }
.share-btn.lk { color: #0A66C2; }
.share-btn.rd { color: #FF4500; }
.share-btn.li { color: #06C755; }
.share-btn.nv { color: #2DB400; }
/* KakaoTalk brand: yellow background with dark text */
.share-btn.kk { background: #FEE500; border-color: #F7D600; color: #191600; }

/* Small helper */
.share-helper { font-size: .82rem; color: #6B7280; margin-bottom: 10px; }
