/* ==========================================================
   PINBOARD GRID
   Mixed-aspect-ratio feed using CSS Grid + dense auto-flow.
   The browser fills gaps automatically — no JS layout engine.
   ========================================================== */

.pinboard {
  --col-count: 4;
  --row-h: 60px;
  --gap: 6px;

  display: grid;
  grid-template-columns: repeat(var(--col-count), 1fr);
  grid-auto-rows: var(--row-h);
  grid-auto-flow: dense;        /* the magic — fills gaps left by tall/wide items */
  gap: var(--gap);
  padding: 1rem 0;
}

@media (max-width: 800px) { .pinboard { --col-count: 3; } }
@media (max-width: 520px) { .pinboard { --col-count: 2; --row-h: 50px; } }


/* ==========================================================
   CARD BASE
   ========================================================== */

.card {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, z-index 0s;
}

.card:hover {
  z-index: 10;
  transform: scale(1.03) rotate(0deg) !important;  /* snaps straight on hover */
}


/* ==========================================================
   TYPE-BASED GRID SPANS
   Shape IS the type indicator.
   ========================================================== */

.card--square  { grid-column: span 1; grid-row: span 3; }   /* ~1:1   album art   */
.card--tall    { grid-column: span 1; grid-row: span 5; }   /* ~9:16  reels       */
.card--wide    { grid-column: span 2; grid-row: span 3; }   /* ~16:9  videos      */
.card--text    { grid-column: span 1; grid-row: span 3; }   /* ~4:3   blog posts  */


/* ==========================================================
   MEDIA CARDS  (album, reel, video)
   ========================================================== */

.card__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* fallback if no image — colored placeholder */
.card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg, #1a1a2e);
}

/* label pinned to bottom */
.card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 8px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
}

.card__type {
  display: block;
  font-size: 0.6rem;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 1px;
}

.card__title {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  font-family: monospace;
}


/* ==========================================================
   BLOG / TEXT CARDS
   ========================================================== */

.card--text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(128, 128, 128, 0.15);
  background: var(--card-text-bg, #fff);
}


.card__blog-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.card__blog-meta {
  font-size: 0.6rem;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.45;
  margin-top: auto;
  padding-top: 8px;
}


/* ==========================================================
   PLAY BUTTON OVERLAY  (video + reel + album)
   ========================================================== */

.card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover .card__play { opacity: 1; }

.card__play::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #222;
  margin-left: 2px;
}


/* ==========================================================
   PINNED / FEATURED
   Optional: add class "card--pinned" to hero items.
   They span wider so they anchor the top of the grid.
   ========================================================== */

.card--pinned {
  grid-column: span 2;
  grid-row: span 4;
}
