/* LoveZero - Partner Secret Responses & Premium Keepsake Studio CSS (< 250 lines) */
.keepsake-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 14px; text-align: left; }
.keepsake-card {
  background: linear-gradient(145deg, #ffffff 0%, #fff5f7 100%);
  border: 1.5px solid rgba(244, 63, 94, 0.18); border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.08); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden; text-align: left;
}
.keepsake-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(244, 63, 94, 0.15); border-color: rgba(244, 63, 94, 0.38); }
.keepsake-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3.5px; background: linear-gradient(90deg, #ec4899, #f43f5e, #fb7185); }
.keepsake-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.keepsake-avatar-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.keepsake-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.28); flex-shrink: 0;
}
.keepsake-title-wrap { min-width: 0; flex: 1; }
.keepsake-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keepsake-date { font-size: 0.74rem; color: #94a3b8; display: block; margin-top: 1px; }

/* Slug Row with ellipsis */
.keepsake-slug-row {
  background: #fdf2f8; border: 1px dashed #fbcfe8; border-radius: 10px; padding: 6px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; min-width: 0;
}
.keepsake-slug-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: monospace; font-size: 0.8rem; color: #db2777; font-weight: 600; min-width: 0; flex: 1; text-align: left; }
.btn-copy-slug { background: none; border: none; cursor: pointer; font-size: 0.78rem; color: #db2777; font-weight: 700; padding: 2px 6px; border-radius: 6px; flex-shrink: 0; white-space: nowrap; }
.btn-copy-slug:hover { background: #fce7f3; }

/* Action Buttons */
.keepsake-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.keepsake-action-row { display: flex; gap: 8px; width: 100%; }
.btn-k-action {
  padding: 8px 12px; border-radius: 10px; font-size: 0.82rem; font-weight: 700; text-align: center;
  text-decoration: none; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center;
  justify-content: center; gap: 6px; border: none; min-height: 36px; box-sizing: border-box;
}
.keepsake-action-row .btn-k-action { flex: 1; min-width: 0; }
.btn-k-open { background: #f8fafc; color: #334155; border: 1px solid #e2e8f0; }
.btn-k-open:hover { background: #f1f5f9; color: #0f172a; }
.btn-k-edit { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.btn-k-edit:hover { background: #fecaca; }
.btn-k-responses {
  width: 100%; background: linear-gradient(135deg, #f43f5e, #ec4899); color: #fff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
}
.btn-k-responses:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(244, 63, 94, 0.35); }

/* Modal Styles */
.lz-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center;
  z-index: 999999; padding: 16px; animation: lzFadeIn 0.25s ease-out;
}
@keyframes lzFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lz-modal-box {
  background: #ffffff; width: 100%; max-width: 880px; max-height: 92vh; border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35); display: flex; flex-direction: column; overflow: hidden;
  position: relative; border: 1px solid rgba(244, 63, 94, 0.2); text-align: left;
}
.lz-modal-header {
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 100%); padding: 16px 22px;
  border-bottom: 1px solid #fce7f3; display: flex; align-items: center; justify-content: space-between; text-align: left; flex-shrink: 0;
}
.lz-modal-header-titles h3 { margin: 0; font-size: 1.22rem; font-weight: 800; color: #be123c; display: flex; align-items: center; gap: 8px; }
.lz-modal-sub { font-size: 0.78rem; color: #9d174d; margin: 3px 0 0 0; font-weight: 500; }
.lz-modal-close {
  background: #fff; border: 1px solid #fecdd3; width: 34px; height: 34px; border-radius: 50%;
  font-size: 1rem; cursor: pointer; color: #e11d48; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; box-shadow: 0 2px 6px rgba(225, 29, 72, 0.1);
}
.lz-modal-close:hover { background: #ffe4e6; color: #9f1239; transform: rotate(90deg); }

/* Progress Summary Strip */
.resp-summary-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fdf2f8;
  border-bottom: 1px solid #fbcfe8; padding: 10px 22px; flex-wrap: wrap; flex-shrink: 0;
}
.summary-status-txt { font-size: 0.82rem; font-weight: 700; color: #be185d; display: flex; align-items: center; gap: 6px; }
.summary-progress-track { width: 140px; height: 7px; background: #fce7f3; border-radius: 10px; overflow: hidden; }
.summary-progress-bar { height: 100%; background: linear-gradient(90deg, #ec4899, #f43f5e); border-radius: 10px; transition: width 0.4s ease; }

/* Modal Body Scroll Container */
.lz-modal-body {
  padding: 20px 22px; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column;
  gap: 16px; text-align: left; flex: 1 1 auto; min-height: 0;
}

/* ── Split Response Card Layout (Left: Info | Right: Visual Snapshot) ── */
.resp-card-split {
  display: grid; grid-template-columns: 1fr 240px; gap: 18px; border-radius: 18px; padding: 18px 20px;
  position: relative; transition: all 0.25s ease; border: 1.5px solid transparent;
  box-shadow: 0 4px 18px rgba(0,0,0,0.03); box-sizing: border-box; width: 100%; flex-shrink: 0; height: auto;
}
.resp-card-split:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

/* Card Color Accents */
.resp-card-proposal { background: linear-gradient(145deg, #ffffff 0%, #fff1f2 100%); border-color: #fecdd3; border-left: 5px solid #f43f5e; }
.resp-card-bottle   { background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%); border-color: #ccfbf1; border-left: 5px solid #0d9488; }
.resp-card-wheel    { background: linear-gradient(145deg, #ffffff 0%, #fefce8 100%); border-color: #fef08a; border-left: 5px solid #d97706; }
.resp-card-signature{ background: linear-gradient(145deg, #ffffff 0%, #faf5ff 100%); border-color: #f3e8ff; border-left: 5px solid #7c3aed; }
.resp-card-split.is-empty { opacity: 0.88; border-left-color: #cbd5e1; }

/* Left Main Content Column */
.resp-card-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; width: 100%; height: auto; }

/* Top Meta Row (Badge + Time) */
.resp-meta-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.resp-step-tag { display: inline-flex; align-items: center; gap: 6px; }
.step-num-pill { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 6px; color: #fff; }
.badge-proposal .step-num-pill { background: #e11d48; }
.badge-bottle   .step-num-pill { background: #0d9488; }
.badge-wheel    .step-num-pill { background: #d97706; }
.badge-sig      .step-num-pill { background: #7c3aed; }
.step-title-text { font-size: 0.86rem; font-weight: 800; color: #1e293b; }

.resp-time-badge {
  display: inline-flex; align-items: center; gap: 5px; background: #ffffff; padding: 4px 10px;
  border-radius: 20px; border: 1px solid #e2e8f0; font-size: 0.76rem; color: #475569; font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.time-ago-tag { background: #f1f5f9; color: #0f172a; padding: 1px 6px; border-radius: 10px; font-size: 0.7rem; font-weight: 700; margin-left: 2px; }

/* Context Description */
.resp-context-line { font-size: 0.84rem; color: #64748b; line-height: 1.45; }
.context-label { font-weight: 700; color: #475569; }
.context-q-text { font-weight: 600; color: #334155; }

/* The Romantic Response Bubble (Full Visibility, No Clipping) */
.resp-bubble {
  background: #ffffff; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 3px 10px rgba(0,0,0,0.04); display: flex; flex-direction: column; gap: 8px;
  position: relative; width: 100%; box-sizing: border-box; height: auto;
}
.bubble-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bubble-partner-name { font-size: 0.84rem; font-weight: 700; color: #475569; }
.bubble-status-chip { font-size: 0.72rem; font-weight: 800; padding: 2px 8px; border-radius: 12px; display: inline-flex; align-items: center; gap: 4px; }
.chip-accepted { background: #ffe4e6; color: #be123c; border: 1px solid #fecdd3; }
.chip-sealed   { background: #ccfbf1; color: #0f766e; border: 1px solid #99f6e4; }
.chip-won      { background: #fef08a; color: #854d0e; border: 1px solid #fde047; }
.chip-signed   { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }

.bubble-quote { font-size: 0.98rem; font-weight: 700; line-height: 1.55; word-break: break-word; white-space: pre-wrap; display: block; }
.quote-proposal { color: #e11d48; font-size: 1.05rem; }
.quote-bottle   { color: #0f766e; font-style: italic; font-weight: 600; }
.quote-signature{ color: #6b21a8; font-style: italic; font-weight: 600; }

.wheel-prize-title { font-size: 1.02rem; font-weight: 800; color: #b45309; display: flex; align-items: center; gap: 6px; }
.wheel-prize-desc  { font-size: 0.85rem; color: #78350f; font-weight: 500; margin-top: 2px; line-height: 1.4; }

/* Empty State Message */
.resp-empty-box {
  background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 14px 16px;
  color: #94a3b8; font-size: 0.84rem; font-style: italic; display: flex; align-items: center; gap: 8px; line-height: 1.45;
}

/* ── Right Column: Section Visual Snapshot Preview ── */
.resp-card-visual {
  border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 12px; position: relative; border: 1px solid rgba(0,0,0,0.06); box-sizing: border-box; height: 100%; gap: 8px;
}
.visual-proposal { background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); }
.visual-bottle   { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); }
.visual-wheel    { background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%); }
.visual-signature{ background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%); }

.visual-snapshot-wrap {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12); border: 1.5px solid rgba(255,255,255,0.85); background: #0f172a;
}
.visual-snapshot-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.3s ease; }
.resp-card-split:hover .visual-snapshot-img { transform: scale(1.05); }
.resp-card-split.is-empty .visual-snapshot-img { filter: grayscale(85%) opacity(0.55); }

.visual-section-label { font-size: 0.74rem; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: 0.4px; }
.visual-status-pill {
  position: absolute; top: 18px; right: 18px; font-size: 0.66rem; font-weight: 800; padding: 3px 8px;
  border-radius: 12px; background: rgba(255,255,255,0.95); box-shadow: 0 2px 6px rgba(0,0,0,0.12); z-index: 2;
}
.visual-status-pill.status-done { color: #059669; }
.visual-status-pill.status-wait { color: #94a3b8; }

/* ── Mobile Optimization (<= 680px) ── */
@media (max-width: 680px) {
  .keepsake-grid { grid-template-columns: 1fr; gap: 10px; }
  .keepsake-card { padding: 14px 12px; border-radius: 14px; }
  .btn-k-action { font-size: 0.74rem; padding: 6px 8px; min-height: 32px; }
  
  /* Modal Overlay & Box */
  .lz-modal-backdrop { padding: 8px 6px; }
  .lz-modal-box { border-radius: 16px; max-height: 95vh; margin: 0; width: 100%; }
  .lz-modal-header { padding: 10px 14px; gap: 8px; }
  .lz-modal-header-titles h3 { font-size: 0.96rem; gap: 6px; line-height: 1.25; }
  .lz-modal-sub { font-size: 0.68rem; line-height: 1.25; margin-top: 2px; }
  .lz-modal-close { width: 28px; height: 28px; font-size: 0.82rem; }

  /* Summary Progress Strip */
  .resp-summary-strip { padding: 6px 12px; gap: 6px; }
  .summary-status-txt { font-size: 0.70rem; gap: 4px; }
  .summary-progress-track { width: 85px; height: 5px; }

  /* Modal Body */
  .lz-modal-body { padding: 10px 8px; gap: 10px; }

  /* Response Card & Typography */
  .resp-card-split {
    grid-template-columns: 1fr; gap: 10px; padding: 12px 10px; border-radius: 12px;
    border-left-width: 3.5px; flex-shrink: 0;
  }
  .resp-card-main { gap: 6px; }

  /* Header inside Card */
  .resp-meta-header { gap: 4px; }
  .resp-step-tag { gap: 4px; }
  .step-num-pill { font-size: 0.58rem; padding: 2px 5px; border-radius: 4px; letter-spacing: 0.2px; }
  .step-title-text { font-size: 0.76rem; }
  .resp-time-badge { font-size: 0.65rem; padding: 2px 7px; border-radius: 12px; gap: 3px; }
  .time-ago-tag { font-size: 0.58rem; padding: 1px 4px; }

  /* Context Text */
  .resp-context-line { font-size: 0.70rem; line-height: 1.35; }
  .context-q-text { font-size: 0.72rem; color: #1e293b; }

  /* Romantic Bubble */
  .resp-bubble { padding: 8px 10px; border-radius: 8px; gap: 5px; }
  .bubble-header { gap: 4px; }
  .bubble-partner-name { font-size: 0.70rem; }
  .bubble-status-chip { font-size: 0.60rem; padding: 1px 5px; border-radius: 6px; }
  
  .bubble-quote { font-size: 0.80rem; line-height: 1.35; }
  .quote-proposal { font-size: 0.84rem; }
  .quote-bottle { font-size: 0.76rem; }
  .quote-signature { font-size: 0.76rem; }
  
  .wheel-prize-title { font-size: 0.78rem; gap: 4px; }
  .wheel-prize-desc { font-size: 0.68rem; line-height: 1.25; margin-top: 1px; }

  .resp-empty-box { font-size: 0.70rem; padding: 8px 10px; gap: 6px; line-height: 1.3; }

  /* Right Visual Column in Mobile Stack */
  .resp-card-visual {
    flex-direction: column; align-items: stretch; gap: 5px; padding: 6px; border-radius: 8px; height: auto;
  }
  .visual-snapshot-wrap { width: 100%; height: 110px; aspect-ratio: auto; border-radius: 6px; }
  .visual-section-label { font-size: 0.64rem; text-align: center; }
  .visual-status-pill { position: absolute; top: 10px; right: 10px; font-size: 0.56rem; padding: 2px 5px; }
}
