/* ============================================
   SNS Share Panel - Shared Styles
   ============================================
   CSS 변수 기반 테마 적응:
   --sns-bg, --sns-text, --sns-border, --sns-hover
   각 앱에서 인라인 또는 :root에서 오버라이드 가능
   ============================================ */

/* Default (Light theme) */
.sns-share-panel {
  --sns-bg: rgba(255, 255, 255, 0.85);
  --sns-text: #555;
  --sns-label: #888;
  --sns-border: rgba(0, 0, 0, 0.08);
  --sns-hover: rgba(0, 0, 0, 0.04);
  --sns-radius: 16px;

  width: 100%;
  margin: 20px 0 12px;
  padding: 20px 16px 16px;
  background: var(--sns-bg);
  border: 1px solid var(--sns-border);
  border-radius: var(--sns-radius);
  text-align: center;
}

/* Dark variant */
.sns-share-panel.sns-dark {
  --sns-bg: rgba(255, 255, 255, 0.06);
  --sns-text: #ddd;
  --sns-label: #999;
  --sns-border: rgba(255, 255, 255, 0.1);
  --sns-hover: rgba(255, 255, 255, 0.08);
}

.sns-share-label {
  font-size: 0.85rem;
  color: var(--sns-label);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

/* Button Grid: 4 buttons in a row */
.sns-share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.sns-share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 68px;
  padding: 10px 4px 8px;
  background: transparent;
  border: 1px solid var(--sns-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.sns-share-btn:hover {
  background: var(--sns-hover);
  transform: translateY(-1px);
}

.sns-share-btn:active {
  transform: scale(0.96);
}

/* Icon circle */
.sns-share-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Platform-specific icon backgrounds */
.sns-share-btn.kakao .sns-share-icon {
  background: #FEE500;
}

.sns-share-btn.twitter .sns-share-icon {
  background: #1DA1F2;
  color: #fff;
}

.sns-share-btn.copy .sns-share-icon {
  background: #E8E8E8;
}

.sns-share-panel.sns-dark .sns-share-btn.copy .sns-share-icon {
  background: rgba(255, 255, 255, 0.15);
}

.sns-share-btn.screenshot .sns-share-icon {
  background: #FFE0E0;
}

.sns-share-panel.sns-dark .sns-share-btn.screenshot .sns-share-icon {
  background: rgba(255, 150, 150, 0.2);
}

/* Label under icon */
.sns-share-btn-label {
  font-size: 0.7rem;
  color: var(--sns-text);
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}

/* === Toast Notification === */
.sns-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sns-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === Responsive === */
@media (max-width: 360px) {
  .sns-share-buttons {
    gap: 8px;
  }

  .sns-share-btn {
    width: 62px;
    padding: 8px 2px 6px;
  }

  .sns-share-icon {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }

  .sns-share-btn-label {
    font-size: 0.65rem;
  }
}