/*
 * Motta — Storefront Social Share Sheet
 * v2800 Faz 3 Agent M5
 *
 * Premium bottom-sheet (mobile) / centered dialog (desktop) — backdrop
 * blur + 6 paylasim aksiyon butonu + erisilebilirlik (ESC, focus trap'a
 * yakin native focus). Mevcut motta-customizer.css palette ile uyumlu.
 */

.mc-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 768px) {
  .mc-share-sheet {
    align-items: center;
    padding: 16px;
  }
}

.mc-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.mc-share-panel {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px 16px 0 0;
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.20);
  animation: mc-share-slide-up 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .mc-share-panel {
    border-radius: 14px;
    animation: mc-share-fade-in 220ms ease-out;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
  }
}

@keyframes mc-share-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes mc-share-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mc-share-panel { animation: none; }
}

.mc-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.mc-share-head h3 {
  margin: 0;
  font: 600 17px/1.2 Georgia, "Times New Roman", serif;
  color: #0f172a;
  letter-spacing: 0.2px;
}

.mc-share-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  padding: 4px 12px;
  border-radius: 6px;
  transition: background 140ms, color 140ms;
}

.mc-share-close:hover,
.mc-share-close:focus-visible {
  background: #f1f5f9;
  color: #0f172a;
  outline: none;
}

.mc-share-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px;
}

.mc-share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms, border-color 180ms, transform 120ms;
  font-family: inherit;
  text-align: left;
  min-height: 48px;
}

.mc-share-btn:hover,
.mc-share-btn:focus-visible {
  background: #ffffff;
  border-color: #c9a24d;
  outline: none;
}

.mc-share-btn:active {
  transform: translateY(1px);
}

.mc-share-btn.is-copied {
  background: rgba(5, 150, 105, 0.10);
  color: #059669;
  border-color: rgba(5, 150, 105, 0.40);
}

.mc-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c9a24d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.mc-share-btn--wa .mc-share-icon   { background: #25D366; }
.mc-share-btn--ig .mc-share-icon   { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.mc-share-btn--fb .mc-share-icon   { background: #1877F2; }
.mc-share-btn--tw .mc-share-icon   { background: #000000; }
.mc-share-btn--copy .mc-share-icon { background: #6b7280; }
.mc-share-btn--pdf .mc-share-icon  { background: #b45309; }

.mc-share-hint {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
  text-align: center;
}

/* Dark theme uyumu (motta-customizer body[data-theme=dark]) */
[data-theme="dark"] .mc-share-panel {
  background: #0f172a;
  color: #f1f5f9;
}

[data-theme="dark"] .mc-share-head {
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

[data-theme="dark"] .mc-share-head h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .mc-share-close {
  color: #94a3b8;
}

[data-theme="dark"] .mc-share-close:hover,
[data-theme="dark"] .mc-share-close:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

[data-theme="dark"] .mc-share-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
  color: #f1f5f9;
}

[data-theme="dark"] .mc-share-btn:hover,
[data-theme="dark"] .mc-share-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: #c9a24d;
}

[data-theme="dark"] .mc-share-hint {
  color: #94a3b8;
}
