/* PrayStation — redes sociais + compartilhamento */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.social-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--color-border, rgba(148, 163, 184, 0.28));
  color: var(--color-muted, #94a3b8);
  background: transparent;
  text-decoration: none;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.social-links__item svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  flex-shrink: 0;
}

.social-links__item:hover {
  color: var(--color-cyan, #22d3ee);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.22);
}

.social-links__item:focus-visible {
  outline: 2px solid var(--color-yellow, #facc15);
  outline-offset: 2px;
}

.social-links--labeled .social-links__item,
.social-links--modal .social-links__item {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

.social-links__label {
  font-size: 0.78rem;
  font-weight: 600;
}

.social-links--community {
  gap: 0.65rem;
  margin-top: 1rem;
}

.social-links--community .social-links__item {
  min-width: 0;
  padding: 0.55rem 0.95rem;
  background: rgba(16, 16, 36, 0.35);
}

.social-links--footer {
  margin-top: 0.85rem;
}

.header-actions .social-links__item,
.social-row .social-links__item {
  width: 2.1rem;
  height: 2.1rem;
  min-width: 2.1rem;
  min-height: 2.1rem;
  padding: 0;
}

.header-actions .social-links__item svg {
  width: 1rem;
  height: 1rem;
}

.btn--share-hero {
  margin-top: 0.35rem;
}

.community-continue {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid rgba(124, 58, 237, 0.35);
  background:
    radial-gradient(ellipse 70% 80% at 10% 0%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(34, 211, 238, 0.1), transparent 50%),
    rgba(16, 16, 36, 0.55);
}

.community-continue h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 1.15rem;
}

.community-continue p {
  margin: 0;
  color: var(--color-muted, #94a3b8);
  line-height: 1.55;
  max-width: 40rem;
}

.nav-panel .social-links,
.bottom-more__sheet .social-links {
  margin: 0.75rem 0 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border, rgba(148, 163, 184, 0.2));
}

.nav-panel [data-share-open],
.bottom-more__sheet [data-share-open] {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

/* Modal / dialog — centralizado na viewport (não segue o botão) */
.ps-share {
  position: fixed;
  inset: 0;
  width: min(440px, calc(100% - 2.5rem));
  max-width: min(440px, calc(100% - 2.5rem));
  height: fit-content;
  max-height: calc(100dvh - 2.5rem);
  margin: auto;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
  z-index: var(--z-modal, 11000);
}
.ps-share::backdrop {
  background: rgba(3, 3, 16, 0.75);
  backdrop-filter: blur(4px);
}
.ps-share__dialog {
  width: 100%;
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-surface, #18182f);
  color: var(--color-text, #f8fafc);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: ps-share-in 0.22s var(--ease-out, ease-out);
}
@keyframes ps-share-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.ps-share__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.15rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.ps-share__head h2 {
  margin: 0;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 1.15rem;
}
.ps-share__desc {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--color-muted, #94a3b8);
  line-height: 1.45;
}
.ps-share__close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
}
.ps-share__close:focus-visible {
  outline: 2px solid var(--color-yellow, #facc15);
  outline-offset: 2px;
}
.ps-share__actions {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.15rem 0.35rem;
}
.ps-share__action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(16, 16, 36, 0.45);
  color: inherit;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.ps-share__action svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  flex-shrink: 0;
}
.ps-share__action:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(124, 58, 237, 0.18);
  transform: translateY(-1px);
}
.ps-share__action:focus-visible {
  outline: 2px solid var(--color-yellow, #facc15);
  outline-offset: 2px;
}
.ps-share__networks {
  padding: 0.65rem 1.15rem 0.35rem;
}
.ps-share__networks-label {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted, #94a3b8);
}
.ps-share__url {
  padding: 0.35rem 1.15rem 0.75rem;
}
.ps-share__url code {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--color-cyan, #22d3ee);
}
.ps-share__feedback {
  margin: 0;
  padding: 0 1.15rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.ps-share__feedback.is-ok { color: #4ade80; }
.ps-share__feedback.is-err { color: #f87171; }

[data-theme="light"] .community-continue {
  background:
    radial-gradient(ellipse 70% 80% at 10% 0%, rgba(124, 58, 237, 0.1), transparent 55%),
    #fff;
}
[data-theme="light"] .ps-share__dialog {
  background: #fff;
  color: #101024;
}
[data-theme="light"] .ps-share__action {
  background: #f1f5f9;
}
[data-theme="light"] .ps-share__url code {
  background: #f1f5f9;
  color: #0891b2;
}

@media (prefers-reduced-motion: reduce) {
  .social-links__item,
  .ps-share__action,
  .ps-social-fab__btn,
  .ps-social-fab__menu a,
  .ps-social-fab__menu button {
    transition: none;
  }
  .social-links__item:hover,
  .ps-share__action:hover,
  .ps-social-fab__btn:hover {
    transform: none;
  }
  .ps-share__dialog {
    animation: none;
  }
  .ps-social-fab.is-open .ps-social-fab__menu a,
  .ps-social-fab.is-open .ps-social-fab__menu button {
    animation: none;
  }
}

@media (max-width: 767px) {
  .ps-share {
    width: min(100%, calc(100% - 1.5rem));
    max-width: min(100%, calc(100% - 1.5rem));
    margin: auto;
  }
  .ps-share__dialog {
    width: 100%;
    border-radius: 18px;
  }
}

/* ——— Social FAB (acima do player musical) ——— */
.ps-social-fab {
  position: fixed;
  right: var(--floating-right, 1rem);
  bottom: var(--social-fab-bottom, 9.5rem);
  z-index: var(--z-social-fab, 4900);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.65rem;
  pointer-events: none;
}
.ps-social-fab > * {
  pointer-events: auto;
}
.ps-social-fab__btn {
  width: var(--social-fab-size, 3.35rem);
  height: var(--social-fab-size, 3.35rem);
  border-radius: 999px;
  border: 2px solid rgba(34, 211, 238, 0.55);
  background:
    radial-gradient(circle at 30% 25%, rgba(250, 204, 21, 0.35), transparent 45%),
    linear-gradient(145deg, #7c3aed, #2563eb 55%, #101024);
  color: #f8fafc;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(124, 58, 237, 0.18);
  transition: transform 0.2s var(--ease-out, ease), box-shadow 0.2s ease, border-color 0.2s ease;
}
.ps-social-fab__btn svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  transition: transform 0.25s var(--ease-out, ease);
}
.ps-social-fab__btn:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: #22d3ee;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.45),
    0 0 0 4px rgba(34, 211, 238, 0.22);
}
.ps-social-fab__btn:focus-visible {
  outline: 2px solid var(--color-yellow, #facc15);
  outline-offset: 3px;
}
.ps-social-fab.is-open .ps-social-fab__btn svg {
  transform: rotate(45deg);
}
.ps-social-fab__menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s var(--ease-out, ease),
    visibility 0.18s;
}
.ps-social-fab.is-open .ps-social-fab__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.ps-social-fab__menu a,
.ps-social-fab__menu button {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  background: rgba(16, 16, 36, 0.92);
  color: #f8fafc;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.ps-social-fab__menu a svg,
.ps-social-fab__menu button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}
.ps-social-fab__menu button svg[data-stroke] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.ps-social-fab__menu a:hover,
.ps-social-fab__menu button:hover {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}
.ps-social-fab__menu a:focus-visible,
.ps-social-fab__menu button:focus-visible {
  outline: 2px solid var(--color-yellow, #facc15);
  outline-offset: 2px;
}
.ps-social-fab.is-open .ps-social-fab__menu a,
.ps-social-fab.is-open .ps-social-fab__menu button {
  animation: ps-fab-pop 0.28s var(--ease-out, ease) both;
}
.ps-social-fab.is-open .ps-social-fab__menu li:nth-child(1) a,
.ps-social-fab.is-open .ps-social-fab__menu li:nth-child(1) button { animation-delay: 0.02s; }
.ps-social-fab.is-open .ps-social-fab__menu li:nth-child(2) a,
.ps-social-fab.is-open .ps-social-fab__menu li:nth-child(2) button { animation-delay: 0.05s; }
.ps-social-fab.is-open .ps-social-fab__menu li:nth-child(3) a,
.ps-social-fab.is-open .ps-social-fab__menu li:nth-child(3) button { animation-delay: 0.08s; }
.ps-social-fab.is-open .ps-social-fab__menu li:nth-child(4) a,
.ps-social-fab.is-open .ps-social-fab__menu li:nth-child(4) button { animation-delay: 0.11s; }
@keyframes ps-fab-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

[data-theme="light"] .ps-social-fab__menu a,
[data-theme="light"] .ps-social-fab__menu button {
  background: #fff;
  color: #101024;
  border-color: rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
  .ps-social-fab {
    right: 0.85rem;
    bottom: calc(
      4.85rem + env(safe-area-inset-bottom, 0px) +
      var(--music-fab-size, 3.35rem) +
      var(--floating-gap, 0.85rem)
    );
  }
}
