/* PinFin Share Panel (reusable) */
.pf-share-panel {
  display: block;
}

.pf-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.1);
}
.pf-share-btn__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pf-share-panel--dark .pf-share-btn {
  border-color: #f5d060;
  background: rgba(245, 208, 96, 0.15);
  color: #fff;
}
.pf-share-panel--dark .pf-share-btn:hover {
  background: rgba(245, 208, 96, 0.35);
}
.pf-share-panel--dark .pf-share-btn[aria-expanded="true"] {
  background: rgba(245, 208, 96, 0.35);
  border-color: #fff;
}

.pf-share-panel--light .pf-share-btn {
  border-color: rgba(2, 6, 23, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}
.pf-share-panel--light .pf-share-btn:hover {
  background: #f1f5f9;
}
.pf-share-panel--light .pf-share-btn[aria-expanded="true"] {
  background: #e2e8f0;
  border-color: rgba(2, 6, 23, 0.18);
}

.pf-share-pop {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  max-width: 28rem;
}
.pf-share-pop.hidden { display: none; }

.pf-share-panel--dark .pf-share-pop {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.pf-share-panel--light .pf-share-pop {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.14);
  color: #0f172a;
}

.pf-share-pop__title {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  opacity: 0.95;
}

.pf-share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 480px) {
  .pf-share-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pf-share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.4rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pf-share-option i { font-size: 1.25rem; }

.pf-share-panel--dark .pf-share-option {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.pf-share-panel--dark .pf-share-option:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pf-share-panel--light .pf-share-option {
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #f8fafc;
  color: #0f172a;
}
.pf-share-panel--light .pf-share-option:hover {
  background: #f1f5f9;
  border-color: rgba(203, 213, 225, 0.95);
}

.pf-share-toast {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
  font-weight: 700;
}
.pf-share-toast.hidden { display: none; }

.pf-share-panel--dark .pf-share-toast {
  background: rgba(14, 122, 62, 0.85);
  color: #fff;
}
.pf-share-panel--light .pf-share-toast {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #166534;
}

