/* Shared styles for "Past calculations" (per-calculator) and
   "Your recent calculators" (homepage) — calcs.mom recents feature. */

.recents-section { margin-top: 24px; }
.recents-heading {
  font-family: 'Lora', serif; font-size: 15px; font-weight: 700;
  color: oklch(35% 0.03 40); margin: 0 0 10px; letter-spacing: 0.01em;
}
.recents-heading.recents-heading-center { text-align: center; font-size: 20px; }

.recents-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.recents-heading-row .recents-heading { margin: 0; }
.recents-reset {
  flex-shrink: 0; border: none; background: none; cursor: pointer; padding: 2px 0;
  font-family: 'Nunito', sans-serif; font-size: 12.5px; font-weight: 700;
  color: oklch(50% 0.09 20); text-decoration: underline; text-underline-offset: 2px;
}
.recents-reset:hover { color: oklch(42% 0.1 20); }

.calc-btn-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.calc-btn-row .btn { margin-top: 0; width: auto; flex: 1 1 160px; }
.calc-btn-row .btn-reset { flex: 0 0 auto; }
.btn-reset { background: oklch(93% 0.015 60); color: oklch(35% 0.03 40); }
.btn-reset:hover { background: oklch(88% 0.015 60); }
.btn-reset-standalone { width: 100%; margin-top: 16px; }

.share-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; grid-column: 1 / -1; }
.btn-share {
  flex: 1 1 140px; border: 1.5px solid oklch(88% 0.02 60); background: #fff;
  color: oklch(35% 0.03 40); font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 13px; padding: 10px 14px; border-radius: 12px; cursor: pointer;
}
.btn-share:hover { background: oklch(97% 0.01 60); border-color: oklch(80% 0.03 60); }
.btn-share.is-copied { background: oklch(93% 0.015 60); border-color: oklch(80% 0.02 60); }

.recents-list { display: flex; flex-direction: column; gap: 10px; }

.recent-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: #fff; border: 1px solid oklch(93% 0.015 60); border-radius: 16px;
  padding: 12px 16px; cursor: pointer; text-align: left;
  font-family: 'Nunito', sans-serif; text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.recent-item:hover {
  transform: translateY(-2px); box-shadow: 0 6px 18px oklch(50% 0.03 40 / 0.12);
  border-color: oklch(85% 0.02 60); color: inherit;
}
.recent-item-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.recent-item-icon svg { width: 20px; height: 20px; }
.recent-item-body { flex: 1; min-width: 0; }
.recent-item-title { font-weight: 700; font-size: 14.5px; color: oklch(30% 0.04 30); }
.recent-item-subtitle {
  font-size: 13px; color: oklch(50% 0.02 50); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recent-item-meta { font-size: 12px; color: oklch(58% 0.02 50); flex-shrink: 0; white-space: nowrap; }

.recents-section-home { max-width: 480px; margin: 32px auto 0; padding: 0 24px; }
