/* ── CRAFTS PAGE ─────────────────────────────────────────────── */

.right {
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 0;
}

.crafts-section-wrap {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  padding: 3rem 4vw 2rem;
  background: rgba(0,0,0,0.34);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 15px;
  border-left: 3px solid #ffffff57;
  overflow: hidden;
}

/* Scrollable list container */
.crafts-list-wrap {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(184,146,42,0.2) transparent;
}
.crafts-list-wrap::-webkit-scrollbar { width: 3px; }
.crafts-list-wrap::-webkit-scrollbar-thumb { background: rgba(184,146,42,0.2); }

.crafts-list { display: flex; flex-direction: column; }

/* ── Post item — twice as tall as Words (.post-item) ─────── */
.crafts-item {
  display: flex; flex-direction: row; align-items: flex-start; gap: 1.4rem;
  padding: 1.8rem 1rem;
  border-bottom: 1px solid rgba(200,185,160,0.12);
  cursor: pointer; text-decoration: none;
  transition: background 0.2s;
  min-height: 128px;                   /* Words thumb is 64px — doubled */
}
.crafts-item:first-child { border-top: 1px solid rgba(200,185,160,0.12); }
.crafts-item:hover { background: rgb(100 101 51 / 30%); }

/* Featured image — 128×128 (double the 64×64 Words thumb) */
.crafts-item-img {
  position: relative;
  width: 128px; height: 128px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(184,146,42,0.15);
  align-self: flex-start;
  box-shadow: 2px 2px 10px #292929;
}
.crafts-item-img--noimg {
  background: rgb(100 101 51 / 12%);
}
.crafts-item-img > img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.85); transition: filter 0.2s;
}
.crafts-item:hover .crafts-item-img > img { filter: brightness(1.05); }

/* Round subcategory icon badge — sits at the right of the row */
.crafts-item-cat {
  flex-shrink: 0; align-self: center;
  width: 56px; height: 56px;
  border-radius: 50%; overflow: hidden;
  background: rgb(28 26 22 / 78%);
  border: 1.5px solid rgba(184,146,42,0.55);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
}
.crafts-item-cat img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; border-radius: 50%;
  filter: none;
  transform: scale(1.12);
  transform-origin: center;
}
/* Per-icon fine-tuning */
.crafts-cat-things img  { transform: scale(1.22); }
.crafts-cat-digital img { transform: scale(1.12) translateX(1px); }
.crafts-cat-build img   { transform: scale(1.04); object-position: 42% center; }

/* Info column */
.crafts-item-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0.35rem;
}

.crafts-item-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 500;
  color: var(--parchment); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
.crafts-item:hover .crafts-item-title { color: var(--gold); }

.crafts-item-date {
  font-size: 1.05rem; font-style: italic;
  color: var(--parchment); opacity: 0.82;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.crafts-item-excerpt {
  font-size: 0.98rem; font-style: normal; line-height: 1.65;
  color: var(--parchment); opacity: 0.92;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  /* Clamp to ~3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.2rem;
}

.crafts-item-arrow {
  font-size: 0.7rem; color: var(--bright-gold);
  opacity: 0; transition: opacity 0.2s;
  margin-top: -0.5rem; white-space: nowrap;
}
.crafts-item:hover .crafts-item-arrow { opacity: 0.7; }

/* Status / loading */
.crafts-loading {
  font-style: italic; color: var(--bone); opacity: 0.5;
  font-size: 0.95rem; padding: 1rem 0;
}

/* Mobile */
@media (max-width: 1520px) {
  .right { overflow: visible; flex: none; }
  .crafts-section-wrap { position: relative; height: auto; min-height: auto; overflow: visible; }
  .crafts-list-wrap { overflow: visible; max-height: none; }
}
