/* Washnah Share Popup — public + admin */
.washnah-share {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.washnah-share__toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(135deg, #801922, #a82633);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(128,25,34,.24);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.washnah-share__toggle i {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: #801922;
  background: rgba(255,255,255,.94);
  border-radius: 999px;
  font-size: 12px;
}

.washnah-share__toggle:hover,
.washnah-share__toggle:focus-visible {
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.24), transparent 34%),
    linear-gradient(135deg, #5f1018, #b3313e);
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(128,25,34,.32);
  outline: none;
}

.washnah-share__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.editorial-card__footer .washnah-share,
.news-story-card__actions .washnah-share,
.media-engagement-card .washnah-share {
  margin-inline-start: 8px;
}

.news-story-card__actions,
.media-engagement-card__actions,
.editorial-card__footer {
  gap: 14px;
  flex-wrap: wrap;
}

.admin-actions .washnah-share,
.admin-share-inline.washnah-share {
  z-index: 5;
}

.admin-actions .washnah-share__toggle,
.admin-share-inline .washnah-share__toggle {
  min-height: 40px;
  padding: 9px 14px;
  color: #801922;
  background: #fff7f8;
  border-color: rgba(128,25,34,.18);
  box-shadow: none;
}

.admin-actions .washnah-share__toggle i,
.admin-share-inline .washnah-share__toggle i {
  color: #fff;
  background: #801922;
}

.admin-actions .washnah-share__toggle:hover,
.admin-share-inline .washnah-share__toggle:hover {
  color: #fff;
  background: linear-gradient(135deg, #801922, #a82633);
}

/* Modal */
.washnah-share-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 34px);
  color: #251016;
}

.washnah-share-modal.is-open {
  display: flex;
}

.washnah-share-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(128,25,34,.24), transparent 34%),
    radial-gradient(circle at 78% 86%, rgba(95,16,24,.20), transparent 34%),
    rgba(15, 10, 12, .58);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
}

.washnah-share-modal__card {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,247,248,.96));
  border: 1px solid rgba(128,25,34,.18);
  border-radius: 30px;
  box-shadow: 0 36px 110px rgba(48, 10, 16, .34);
  transform: translateY(12px) scale(.97);
  opacity: 0;
  transition: transform .24s ease, opacity .24s ease;
}

.washnah-share-modal.is-open .washnah-share-modal__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.washnah-share-modal__card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  inset-block-start: -190px;
  inset-inline-end: -160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(128,25,34,.15), transparent 67%);
  pointer-events: none;
}

.washnah-share-modal__close {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #801922;
  background: #fff;
  border: 1px solid rgba(128,25,34,.13);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(128,25,34,.10);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.washnah-share-modal__close:hover,
.washnah-share-modal__close:focus-visible {
  color: #fff;
  background: #801922;
  transform: rotate(90deg);
  outline: none;
}

.washnah-share-modal__header {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  align-items: center;
  padding-inline-end: 48px;
}

.washnah-share-modal__icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #801922, #b3313e);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(128,25,34,.22);
}

.washnah-share-modal__title {
  margin: 0 0 5px;
  color: #5f1018;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 950;
  line-height: 1.25;
}

.washnah-share-modal__subtitle {
  margin: 0;
  color: #74636a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.washnah-share-modal__url {
  position: relative;
  z-index: 2;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 16px;
  padding: 11px 14px;
  color: #6c5359;
  background: #fff;
  border: 1px solid rgba(128,25,34,.12);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.washnah-share-modal__url i {
  color: #801922;
  font-size: 18px;
}

.washnah-share-modal__url span {
  min-width: 0;
  overflow: hidden;
  direction: ltr;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 800;
}

.washnah-share-modal__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.washnah-share-modal__item {
  min-height: 104px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px 10px;
  color: #351018;
  text-align: center;
  text-decoration: none;
  background:
    linear-gradient(180deg, #fff, #fff7f8);
  border: 1px solid rgba(128,25,34,.13);
  border-radius: 22px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(95,16,24,.07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.washnah-share-modal__item:hover,
.washnah-share-modal__item:focus-visible {
  color: #801922;
  background: #fff;
  border-color: rgba(128,25,34,.28);
  box-shadow: 0 20px 44px rgba(95,16,24,.13);
  transform: translateY(-3px);
  outline: none;
}

.washnah-share-modal__item-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #801922;
  border-radius: 999px;
  font-size: 19px;
  box-shadow: 0 12px 24px rgba(128,25,34,.18);
}

.washnah-share-modal__item--whatsapp .washnah-share-modal__item-icon { background: #25D366; }
.washnah-share-modal__item--x .washnah-share-modal__item-icon { background: #111; }
.washnah-share-modal__item--telegram .washnah-share-modal__item-icon { background: #229ED9; }
.washnah-share-modal__item--linkedin .washnah-share-modal__item-icon { background: #0A66C2; }
.washnah-share-modal__item--facebook .washnah-share-modal__item-icon { background: #1877F2; }
.washnah-share-modal__item--copy .washnah-share-modal__item-icon { background: #801922; }

.washnah-share-modal__item--copy.is-copied .washnah-share-modal__item-icon {
  background: #08756a;
}

.washnah-share-modal__toast {
  min-height: 24px;
  margin-top: 14px;
  color: #08756a;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

body.washnah-share-modal-lock {
  overflow: hidden;
}

@media (max-width: 620px) {
  .washnah-share-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .washnah-share-modal__card {
    border-radius: 26px 26px 20px 20px;
    padding: 22px 16px 18px;
  }

  .washnah-share-modal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .washnah-share-modal__item {
    min-height: 92px;
  }

  .washnah-share-modal__url {
    margin-top: 16px;
  }
}
