/* =====================================================================
 * mk-new.css — Memory Keeper v2 additions
 *   • "Choose Occasion & Voice" switcher
 *   • the high-density photo wall (hero / bento / mosaic / filmstrip)
 *   • the Polaroid print strip
 *   • the bulk photo uploader + live curator preview
 * Loaded AFTER showcase.css so it can override it.
 * ===================================================================== */

/* ------------------------------------------------ occasion switcher --- */
.occ-sec { padding: 96px 0 84px; background: linear-gradient(180deg, #0B1020 0%, #0d1224 100%); }

.occ-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.occ-card {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 0; overflow: hidden; border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(247,245,240,.14);
  color: inherit; font: inherit;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), border-color .28s, box-shadow .28s;
}
.occ-card:hover { transform: translateY(-4px); border-color: rgba(201,168,76,.55); }
.occ-card.is-active {
  border-color: var(--gold);
  box-shadow: 0 18px 46px rgba(0,0,0,.5), 0 0 0 1px rgba(201,168,76,.45) inset;
}
.occ-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #05070F; }
.occ-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.02); }
.occ-card.is-active .occ-photo img { transform: scale(1.04); transition: transform .5s; }
.occ-body { display: block; padding: 14px 15px 17px; }
.occ-kicker {
  display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .17em;
  text-transform: uppercase; color: var(--gold);
}
.occ-name {
  display: block; margin-top: 6px; font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px; line-height: 1.2; color: var(--white);
}
.occ-blurb {
  display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.55;
  color: rgba(247,245,240,.66);
}
.occ-meta {
  display: block; margin-top: 10px; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(247,245,240,.44);
}

.voice-head { margin-top: 46px; }
.voice-head h3 {
  margin: 0 0 6px; font-family: Georgia, serif; font-weight: 400;
  font-size: 22px; color: var(--white);
}
.voice-note { margin: 0 0 16px; font-size: 12.5px; color: rgba(247,245,240,.60); }
.voice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.voice-chip {
  cursor: pointer; text-align: left; padding: 14px 15px; border-radius: 12px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(247,245,240,.13);
  color: inherit; font: inherit; transition: border-color .25s, background .25s, transform .25s;
}
.voice-chip:hover { transform: translateY(-2px); border-color: rgba(201,168,76,.45); }
.voice-chip.is-active { border-color: var(--gold); background: rgba(201,168,76,.10); }
.voice-chip strong {
  display: block; font-size: 14px; color: var(--white); letter-spacing: .01em;
}
.voice-chip span {
  display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.5;
  color: rgba(247,245,240,.58);
}

/* ------------------------------------------------------- photo wall --- */
.archive-sec { padding: 92px 0 84px; background: #0a0d19; }
.sub-head { margin-top: 54px; }
.wall-summary {
  margin-top: 16px; font-size: 13px; line-height: 1.6;
  color: rgba(247,245,240,.68); max-width: 900px;
}
.wall-summary strong { color: var(--gold-light); }
.photo-wall { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.wall-head {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(247,245,240,.45); padding-bottom: 10px;
  border-bottom: 1px solid rgba(247,245,240,.10);
}
.wall-block {
  border: 1px solid rgba(247,245,240,.10); border-radius: 14px;
  background: rgba(255,255,255,.025); padding: 12px;
}
.wall-title {
  font-size: 9.5px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase;
  color: rgba(201,168,76,.85); margin-bottom: 10px;
}
.wall-title em { font-style: normal; color: rgba(247,245,240,.38); }
.wall-row { display: grid; gap: 8px; }
.wall-row-hero { grid-template-columns: 1fr; }
.wall-row-bento2 { grid-template-columns: 2fr 1fr; }
.wall-row-bento3 { grid-template-columns: 2fr 1fr 1fr; }
.wall-row-mosaic6 { grid-template-columns: repeat(3, 1fr); }
.wall-row-mosaic9 { grid-template-columns: repeat(3, 1fr); }
.wall-row-filmstrip { grid-template-columns: repeat(8, 1fr); }
.wall-cell {
  position: relative; margin: 0; overflow: hidden; border-radius: 8px;
  background: #05070F; aspect-ratio: 3 / 2;
}
.wall-row-hero .wall-cell { aspect-ratio: 16 / 7; }
.wall-row-filmstrip .wall-cell { aspect-ratio: 1 / 1; }
.wall-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-cell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px;
  background: linear-gradient(180deg, rgba(5,7,15,0) 0%, rgba(5,7,15,.86) 100%);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 8px;
  font-size: 11px; color: rgba(255,255,255,.88);
}
.wall-cell figcaption em {
  font-style: normal; font-family: 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', cursive;
  font-size: 13px; color: #ffd9a0; transform: rotate(-3deg); white-space: nowrap;
}

/* ---------------------------------------------------- polaroid strip --- */
.polaroid-strip {
  margin-top: 18px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.polaroid {
  margin: 0; padding: 9px 9px 30px; background: #f6f3ec; border-radius: 3px;
  box-shadow: 0 14px 30px rgba(0,0,0,.5); transform: rotate(var(--tilt, -1.2deg));
  transition: transform .3s;
}
.polaroid:nth-child(3n) { --tilt: 1.4deg; }
.polaroid:nth-child(3n+2) { --tilt: -.4deg; }
.polaroid:hover { transform: rotate(0deg) scale(1.03); }
.polaroid img { width: 100%; display: block; }

/* ---------------------------------------------------------- uploader --- */
.upload-sec { padding: 92px 0 86px; background: #0d101d; }
.upload-grid {
  margin-top: 30px; display: grid; gap: 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.dropzone {
  border: 2px dashed rgba(201,168,76,.42); border-radius: 16px;
  padding: 40px 24px; text-align: center; cursor: pointer;
  background: rgba(201,168,76,.05); transition: border-color .25s, background .25s, transform .25s;
}
.dropzone:hover, .dropzone:focus { border-color: var(--gold); background: rgba(201,168,76,.10); outline: none; }
.dropzone.is-over { border-color: var(--gold); background: rgba(201,168,76,.16); transform: scale(1.01); }
.dropzone strong { display: block; font-size: 17px; color: var(--white); }
.dropzone span { display: block; margin-top: 8px; font-size: 12px; color: rgba(247,245,240,.55); }

.link-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.link-row input {
  flex: 1 1 260px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(247,245,240,.18); background: rgba(5,7,15,.55);
  color: var(--white); font: inherit; font-size: 13px;
}
.link-row input:focus { outline: none; border-color: var(--gold); }

.link-card {
  margin-top: 12px; padding: 13px 15px; border-radius: 11px;
  border: 1px solid rgba(247,245,240,.14); background: rgba(255,255,255,.04);
  font-size: 12.5px; line-height: 1.6; color: rgba(247,245,240,.74);
}
.link-card strong { display: block; color: var(--gold-light); font-size: 13px; margin-bottom: 4px; }
.link-card p { margin: 0; }
.link-card.is-warn { border-color: rgba(214,138,98,.5); }
.link-card.is-warn strong { color: #e6a077; }
.link-card.is-ok { border-color: rgba(122,190,140,.5); }
.link-card.is-ok strong { color: #8fd6a4; }

.uploader-status { margin: 18px 0 4px; font-size: 13px; color: rgba(247,245,240,.72); }
.uploader-status.is-warn { color: #e6a077; }
.uploader-status.is-ok { color: #8fd6a4; }
.uploader-count { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(247,245,240,.42); }

.curator-preview {
  border: 1px solid rgba(247,245,240,.12); border-radius: 16px;
  background: rgba(5,7,15,.55); padding: 14px; min-height: 320px;
}
.curator-summary {
  font-size: 11.5px; line-height: 1.6; color: rgba(247,245,240,.66);
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(247,245,240,.10);
}
.curator-summary strong { color: var(--gold-light); }
.curator-preview .wall-block { margin-bottom: 12px; }
.curator-preview .wall-cell figcaption { display: none; }

/* ------------------------------------------------------------ narrow --- */
@media (max-width: 1080px) {
  .occ-grid, .voice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .occ-grid, .voice-grid { grid-template-columns: 1fr; }
  .wall-row-bento2, .wall-row-bento3 { grid-template-columns: 1fr 1fr; }
  .wall-row-mosaic6, .wall-row-mosaic9 { grid-template-columns: repeat(2, 1fr); }
  .wall-row-filmstrip { grid-template-columns: repeat(4, 1fr); }
  .occ-sec, .archive-sec, .upload-sec { padding: 62px 0 58px; }
}
