/* ═══════════════════════════════════════════
   Memoroam — Inspiration Board
   Floating pill + slide-up panel for
   saved social media links.
   ═══════════════════════════════════════════ */

/* ── Floating pill button ────────────────── */

.insp-pill {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #1A1A1A;
  color: #F4F3EE;
  border: none;
  border-radius: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s;
  animation: inspPillIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.insp-pill:active {
  transform: scale(0.95);
}

.insp-pill svg {
  flex-shrink: 0;
}

@keyframes inspPillIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Panel overlay ───────────────────────── */

.insp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: discFadeIn 0.2s ease;
}

.insp-sheet {
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  animation: discSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
}

/* ── Header ──────────────────────────────── */

.insp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 14px;
}

.insp-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0;
}

.insp-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #B5B3AC;
}

/* ── URL input area ──────────────────────── */

.insp-add-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.insp-url-input {
  flex: 1;
  padding: 10px 14px;
  background: #F4F3EE;
  border: 1px solid #E0DFD9;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #1A1A1A;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.insp-url-input:focus {
  border-color: #4A8C8A;
}

.insp-url-input--error {
  border-color: #D45050 !important;
  animation: inspShake 0.3s ease;
}

@keyframes inspShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

.insp-url-input::placeholder {
  color: #B5B3AC;
}

.insp-add-btn {
  padding: 10px 18px;
  background: #4A8C8A;
  color: #FFF;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.insp-add-btn:active {
  transform: scale(0.95);
}

/* ── Scrollable list ─────────────────────── */

.insp-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 55vh;
}

/* ── Inspiration card ────────────────────── */

.insp-card {
  display: flex;
  align-items: stretch;
  background: #F4F3EE;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.insp-card:active {
  transform: scale(0.98);
}

.insp-card-link {
  display: flex;
  flex: 1;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.insp-card-thumb {
  width: 72px;
  min-width: 72px;
  min-height: 72px;
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.05);
}

.insp-card-thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.insp-card-info {
  flex: 1;
  padding: 10px 12px;
  min-width: 0;
}

.insp-card-platform {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #B5B3AC;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.insp-card-platform svg {
  flex-shrink: 0;
}

.insp-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insp-card-author {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #B5B3AC;
  margin-top: 2px;
}

.insp-card-loading {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #4A8C8A;
  border-radius: 50%;
  animation: discSpin 0.6s linear infinite;
  margin-top: 4px;
}

.insp-card-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  background: none;
  border: none;
  color: #B5B3AC;
  cursor: pointer;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.insp-card-delete:active {
  color: #D45050;
}

/* ── Empty state ─────────────────────────── */

.insp-empty {
  text-align: center;
  padding: 40px 24px;
}

.insp-empty-icon {
  margin-bottom: 12px;
  opacity: 0.6;
}

.insp-empty-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #B5B3AC;
  line-height: 1.5;
}

/* ── Dark Mode ── */
[data-theme="dark"] .insp-sheet{background:var(--card);}
