
/* ════════════════════════════════════════
   PRODUCT CARD
   Revrnu Masonry Feed
════════════════════════════════════════ */

:root {
  --post-radius: 0.8rem;
}

/* ════════════════════════════════════════
   CARD
════════════════════════════════════════ */

.post {
  display: block;
  width: 100%;
  margin: 0 0 0.5rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;

  background: transparent;
  cursor: pointer;

  
  border-radius: var(--post-radius);
  overflow: hidden;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.post:hover {
  transform: translateY(-4px);
  
}

/* ════════════════════════════════════════
   MEDIA
════════════════════════════════════════ */

.post__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--post-radius);
  background: var(--c-surface2);
}

/* VARIABLE HEIGHTS FOR MASONRY */
.post:nth-child(3n+1) .post__media {
  aspect-ratio: 3/4;
}

.post:nth-child(3n+2) .post__media {
  aspect-ratio: 4/5;
}

.post:nth-child(3n) .post__media {
  aspect-ratio: 1/1;
}

.post__media img,
.post__media video {
  display: block;
  width: 100%;
  height: 100%;

  /* ZOOMED FOR MASONRY */
  object-fit: cover;
  object-position: center center;

  transition: transform 0.25s ease;
}

.post:hover .post__media img,
.post:hover .post__media video {
  transform: scale(1.01);
}

.post__price {
  color: #fff;

  font-family: var(--ff-display);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
}


.post__media-empty {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface2);
  color: var(--c-muted);
  font-size: 1.5rem;
}

/* ════════════════════════════════════════
   SLIDES
════════════════════════════════════════ */

.post__slides {
  display: flex;
  width: 100%;
  transition: transform 0.3s ease;
  will-change: transform;
}

.post__slide {
  min-width: 100%;
}

.post__slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.post__slide-dots {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);

  display: flex;
  gap: 0.35rem;
}

.post__slide-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
}

.post__slide-dot.is-active {
  background: white;
}

.post__slide-count {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;

  padding: 0.25rem 0.5rem;
  border-radius: 999px;

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);

  color: white;
  font-size: 0.65rem;
  font-weight: 700;
}

/* ════════════════════════════════════════
   BODY
════════════════════════════════════════ */

.post__body {
  padding: 0.6rem 0.5rem;
  background: rgba(8, 8, 8, 0.5);
  backdrop-filter: blur(8px);
}

.post__title {
  color: #fff;

  font-family: var(--ff-display);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */

.post__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;

  padding: 0.4rem 0.5rem;
  background: rgba(8, 8, 8, 0.5);
  backdrop-filter: blur(8px);
}

.post__action {
  display: flex;
  align-items: center;
  gap: 0.2rem;

  padding: 0.35rem 0.4rem;

  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);

  color: rgba(255, 255, 255, 0.7);

  font-size: 0.6rem;
  font-weight: 600;

  cursor: pointer;

  transition: all 0.2s ease;
}

.post__action:hover {
  background: var(--c-accent);
  color: #000;
}

.post__action i {
  font-size: 0.7rem;
}

.post__action.is-liked {
  color: #ff6b6b;
}

.post__action.is-wishlisted {
  background: rgba(var(--c-accent-rgb), 0.2);
  color: var(--c-accent);
}

.post__action.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ════════════════════════════════════════
   AUDIO
════════════════════════════════════════ */

.post__audio-bg,
.post__doc-bg,
.post__collection-bg {
  position: relative;
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.post__audio-bg {
  background-size: cover;
  background-position: center;
  background: linear-gradient(135deg, #0a0f0a, #0f1a0f, #050805);
  flex-direction: column;
  gap: 16px;
}

.post__doc-bg {
  background-size: cover;
  background-position: center;
  background: linear-gradient(135deg, #0a0f0f, #0f1a1a, #050808);
  flex-direction: column;
  gap: 14px;
}

.post__collection-bg {
  background-size: cover;
  background-position: center;
}

.post__audio-overlay,
.post__doc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.post__audio-play,
.post__play-btn,
.post__collection-icon {
  width: 56px;
  height: 56px;

  border: none;
  border-radius: 50%;

  background: var(--c-accent);
  color: #080808;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1rem;
  cursor: pointer;

  z-index: 2;
  transition: 
    transform 0.25s cubic-bezier(0.16,1,0.3,1), 
    box-shadow 0.25s ease;
  box-shadow: 
    0 0 28px rgba(184, 245, 61, 0.3),
    0 0 56px rgba(184, 245, 61, 0.1),
    0 6px 18px rgba(0,0,0,0.4);
}

.post__audio-play:hover,
.post__play-btn:hover,
.post__collection-icon:hover {
  transform: scale(1.08);
  box-shadow: 
    0 0 40px rgba(184, 245, 61, 0.5),
    0 0 80px rgba(184, 245, 61, 0.2),
    0 6px 24px rgba(0,0,0,0.5);
}

.post__audio-play:active,
.post__play-btn:active,
.post__collection-icon:active {
  transform: scale(0.94);
  transition: transform 0.1s ease;
}

.post__audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  position: relative;
  z-index: 2;
}

.post__audio-bars .bar {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: var(--c-accent);
  opacity: 0.4;
}

.post__audio-bars.playing .bar {
  opacity: 0.9;
  animation: audioBar var(--d, 0.5s) ease-in-out infinite alternate;
}

.post__audio-bars .bar:nth-child(1) { --d: 0.4s; }
.post__audio-bars .bar:nth-child(2) { --d: 0.6s; }
.post__audio-bars .bar:nth-child(3) { --d: 0.3s; }
.post__audio-bars .bar:nth-child(4) { --d: 0.5s; }
.post__audio-bars .bar:nth-child(5) { --d: 0.45s; }
.post__audio-bars .bar:nth-child(6) { --d: 0.35s; }
.post__audio-bars .bar:nth-child(7) { --d: 0.55s; }

@keyframes audioBar {
  from { height: 3px; opacity: 0.3; }
  to { height: 22px; opacity: 1; }
}

.post__audio-seek-wrap,
.post__video-seek-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 10px;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.post__audio-seek-wrap.is-visible,
.post__video-seek-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.post__media:hover .post__audio-seek-wrap,
.post__media:hover .post__video-seek-wrap {
  transform: translateY(-2px);
}

.post__audio-seek,
.post__video-seek {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.post__audio-seek::-webkit-slider-thumb,
.post__video-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--c-accent);
  cursor: pointer;
  border: 2px solid #0a0a0a;
  margin-top: -5px;
  box-shadow: 
    0 0 10px rgba(184, 245, 61, 0.6),
    0 0 20px rgba(184, 245, 61, 0.3);
  transition: box-shadow 0.2s ease;
}

.post__audio-seek::-webkit-slider-thumb:hover,
.post__video-seek::-webkit-slider-thumb:hover {
  box-shadow: 
    0 0 16px rgba(184, 245, 61, 0.8),
    0 0 32px rgba(184, 245, 61, 0.4);
}

.post__audio-seek::-moz-range-track,
.post__video-seek::-moz-range-track {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
}

.post__audio-seek::-moz-range-progress,
.post__video-seek::-moz-range-progress {
  height: 5px;
  border-radius: 3px;
  background: var(--c-accent);
}

.post__audio-seek::-moz-range-thumb,
.post__video-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--c-accent);
  cursor: pointer;
  border: 2px solid #0a0a0a;
  box-shadow: 0 0 10px rgba(184, 245, 61, 0.6), 0 0 20px rgba(184, 245, 61, 0.3);
}

/* ════════════════════════════════════════
   VIDEO
════════════════════════════════════════ */

.post__video-wrap {
  position: relative;
  width: 100%;
}

.post__video-wrap video {
  width: 100%;
  display: block;

  /* IMPORTANT: less crop */
  object-fit: contain;
}

.post__video-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.12);
}

/* ════════════════════════════════════════
   DOC
════════════════════════════════════════ */

.post__doc-icon {
  position: relative;
  z-index: 2;

  width: 3.25rem;
  height: 4rem;

  border-radius: 0.8rem;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 1.25rem;
}

.post__doc-label {
  position: relative;
  z-index: 2;

  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════
   LOCK LABEL
════════════════════════════════════════ */

.post__lock {
  display: none;
}

/* ════════════════════════════════════════
   SKELETON
   MATCHES 0.8rem RADIUS
════════════════════════════════════════ */

.skel-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;

  margin-bottom: 0.5rem;

  border-radius: 0.8rem;
  overflow: hidden;
}

.skel-media,
.skel-line,
.skel-avatar {
  background: var(--c-surface2);
  animation: skelShimmer 1.4s ease infinite;
}

.skel-media {
  width: 100%;
  border-radius: 0.8rem;
}

.skel-body {
  padding: 0.75rem;
}

.skel-line {
  height: 0.55rem;
  border-radius: 999px;
}

.skel-line.short {
  width: 60%;
}

.skel-line.xshort {
  width: 40%;
}

.skel-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 0.8rem;
}

@keyframes skelShimmer {
  0%,100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
/* ═══ AUDIO/VIDEO SEEK — matching product detail ═══ */
.post__audio-seek,
.post__video-seek {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.post__audio-seek::-webkit-slider-runnable-track,
.post__video-seek::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--c-accent) 0%,
    var(--c-accent) var(--seek-percent, 0%),
    rgba(255, 255, 255, 0.08) var(--seek-percent, 0%),
    rgba(255, 255, 255, 0.08) 100%
  );
}

.post__audio-seek::-webkit-slider-thumb,
.post__video-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--c-accent);
  cursor: pointer;
  border: 2px solid #0a0a0a;
  margin-top: -5px;
  box-shadow: 
    0 0 12px rgba(184, 245, 61, 0.6),
    0 0 24px rgba(184, 245, 61, 0.3);
}

.post__audio-seek::-webkit-slider-thumb:hover,
.post__video-seek::-webkit-slider-thumb:hover {
  box-shadow: 
    0 0 20px rgba(184, 245, 61, 0.8),
    0 0 40px rgba(184, 245, 61, 0.4);
}

.post__audio-seek::-moz-range-track,
.post__video-seek::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
}

.post__audio-seek::-moz-range-progress,
.post__video-seek::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--c-accent);
}

.post__audio-seek::-moz-range-thumb,
.post__video-seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--c-accent);
  cursor: pointer;
  border: 2px solid #0a0a0a;
  box-shadow: 0 0 12px rgba(184, 245, 61, 0.6), 0 0 24px rgba(184, 245, 61, 0.3);
}
