/* =========================================================
   BEADKIN Pinterest-style Moments Wall
   Add-on only: scoped classes, no changes to DIY builder JS.
   ========================================================= */
.bk-moments-wall {
  --bk-moment-bg: #fbf6ee;
  --bk-moment-card: #fffdf9;
  --bk-moment-ink: #3f2c1d;
  --bk-moment-muted: #8b7766;
  --bk-moment-line: rgba(149, 108, 64, .16);
  --bk-moment-gold: #ba8a43;
  --bk-moment-green: #174b38;
  --bk-moment-shadow: 0 22px 60px rgba(72, 44, 19, .12);
  position: relative;
  isolation: isolate;
  padding: clamp(26px, 3.4vw, 48px) clamp(16px, 4vw, 54px) clamp(64px, 8vw, 112px);
  background:
    radial-gradient(circle at 12% 0%, rgba(186, 138, 67, .10), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(23, 75, 56, .07), transparent 28%),
    linear-gradient(180deg, #fffdf9 0%, var(--bk-moment-bg) 48%, #f6eddf 100%);
  border-top: 1px solid rgba(149, 108, 64, .12);
  overflow: hidden;
}

.bk-moments-wall::before,
.bk-moments-wall::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
}

.bk-moments-wall::before {
  width: 320px;
  height: 320px;
  left: -150px;
  bottom: 10%;
  background: rgba(186, 138, 67, .08);
  filter: blur(2px);
}

.bk-moments-wall::after {
  width: 230px;
  height: 230px;
  right: -94px;
  top: 16%;
  border: 1px solid rgba(186, 138, 67, .17);
}

.bk-moments-inner {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.bk-gallery-share-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 16px;
  min-height: 44px;
}

.bk-user-share-btn {
  appearance: none;
  border: 1px solid rgba(23, 75, 56, .12);
  min-height: 44px;
  padding: 0 18px 0 12px;
  border-radius: 999px;
  background: #174b38;
  color: #fffdf9;
  box-shadow: 0 15px 32px rgba(23, 75, 56, .18);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.bk-user-share-btn:hover {
  transform: translateY(-2px);
  background: #103d2d;
  box-shadow: 0 18px 38px rgba(23, 75, 56, .24);
}

.bk-user-share-btn:focus-visible,
.bk-pin-share:focus-visible {
  outline: 3px solid rgba(186, 138, 67, .38);
  outline-offset: 3px;
}

.bk-user-share-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 253, 249, .16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

.bk-masonry-board {
  column-count: 5;
  column-gap: 18px;
}

.bk-moment-pin {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border-radius: 26px;
  background: var(--bk-moment-card);
  border: 1px solid rgba(149, 108, 64, .13);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(70, 43, 20, .075);
  transform: translateZ(0);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.bk-moment-pin:hover {
  transform: translateY(-5px);
  box-shadow: var(--bk-moment-shadow);
  border-color: rgba(186, 138, 67, .28);
}

.bk-moment-pin img {
  width: 100%;
  height: auto;
  display: block;
  background: #efe5d8;
  transition: transform .5s ease, filter .5s ease;
}

.bk-moment-pin:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}

.bk-user-moment-pin {
  border-color: rgba(23, 75, 56, .22);
  box-shadow: 0 18px 46px rgba(23, 75, 56, .13);
}

.bk-user-moment-pin.is-new::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  border: 2px solid rgba(186, 138, 67, .45);
  animation: bkMomentNew 1.7s ease forwards;
}

@keyframes bkMomentNew {
  0% { opacity: 1; transform: scale(.985); }
  100% { opacity: 0; transform: scale(1.03); }
}

.bk-pin-badge,
.bk-pin-share,
.bk-pin-more {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.bk-pin-badge {
  left: 12px;
  top: 12px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 253, 249, .86);
  border: 1px solid rgba(255,255,255,.55);
  color: #79562e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
}

.bk-pin-share {
  appearance: none;
  border: 0;
  right: 12px;
  top: 12px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(23, 75, 56, .94);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.bk-pin-share:hover {
  background: #103d2d;
}

.bk-pin-more {
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 253, 249, .9);
  border: 1px solid rgba(96, 66, 37, .12);
  color: #6e5136;
  font-weight: 900;
  letter-spacing: .1em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}

.bk-moment-pin:hover .bk-pin-share,
.bk-moment-pin:hover .bk-pin-more,
.bk-moment-pin:focus-within .bk-pin-share,
.bk-moment-pin:focus-within .bk-pin-more {
  opacity: 1;
  transform: translateY(0);
}

.bk-pin-caption {
  position: relative;
  padding: 12px 14px 16px;
  background: linear-gradient(180deg, rgba(255,253,249,.96), rgba(255,249,240,.98));
}

.bk-pin-caption h3 {
  margin: 0 0 5px;
  color: #3d2b1d;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -.01em;
}

.bk-pin-caption p {
  margin: 0;
  color: var(--bk-moment-muted);
  font-size: 12px;
  line-height: 1.55;
}

.bk-share-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 99999;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(23, 75, 56, .96);
  color: #fffdf9;
  box-shadow: 0 20px 52px rgba(23, 75, 56, .28);
  font-size: 13px;
  font-weight: 800;
  transition: opacity .22s ease, transform .22s ease;
}

.bk-share-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1260px) {
  .bk-masonry-board { column-count: 4; }
}

@media (max-width: 980px) {
  .bk-masonry-board { column-count: 3; column-gap: 14px; }
  .bk-moment-pin { margin-bottom: 14px; border-radius: 22px; }
}

@media (max-width: 680px) {
  .bk-moments-wall { padding: 28px 12px 64px; }
  .bk-gallery-share-bar { margin-bottom: 12px; }
  .bk-user-share-btn { width: 100%; justify-content: center; }
  .bk-masonry-board { column-count: 2; column-gap: 10px; }
  .bk-moment-pin { margin-bottom: 10px; border-radius: 18px; }
  .bk-pin-caption { padding: 10px 11px 13px; }
  .bk-pin-caption h3 { font-size: 12px; }
  .bk-pin-caption p { display: none; }
  .bk-pin-share { opacity: 1; transform: none; min-height: 30px; padding: 0 10px; font-size: 10px; }
  .bk-pin-more { opacity: 1; transform: none; width: 30px; height: 30px; }
}

@media (max-width: 410px) {
  .bk-masonry-board { column-count: 1; }
}
