/* JourneyArchive — warm journal aesthetic */
:root {
  --cream: #faf6f0;
  --warm-white: #fff8f0;
  --tan: #e8dcc8;
  --leather: #8b6f47;
  --dark-leather: #5c4a2e;
  --ink: #2c1810;
  --faded-ink: #6b5a4e;
  --gold-accent: #c9a84c;
  --sage: #7a8b6f;
  --clay: #b8845f;
  --paper-shadow: rgba(44, 24, 16, 0.08);
  --radius: 12px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
.nav {
  background: var(--ink);
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-family: var(--serif);
  color: var(--gold-accent);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a, .nav-links button {
  color: var(--tan);
  text-decoration: none;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.nav-links a:hover, .nav-links button:hover { color: var(--gold-accent); }
.nav-user { color: var(--tan); font-size: 0.85rem; }

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--ink) 0%, var(--dark-leather) 100%);
  color: var(--cream);
}
.hero h1 {
  font-family: var(--serif);
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--gold-accent);
}
.hero p {
  font-size: 1.2rem;
  color: var(--tan);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-examples {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.hero-example {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: 0.6rem 1.2rem;
  color: var(--tan);
  font-size: 0.9rem;
  font-family: var(--serif);
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: var(--sans);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold-accent);
  color: var(--ink);
}
.btn-primary:hover { background: #d4b35a; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--leather);
  border: 1.5px solid var(--leather);
}
.btn-secondary:hover { background: var(--leather); color: var(--cream); }
.btn-danger { background: #c0392b; color: white; }
.btn-danger:hover { background: #a93226; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }

/* Cards */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.journey-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--paper-shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--tan);
}
.journey-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(44, 24, 16, 0.12);
}
.card-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--leather) 0%, var(--dark-leather) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover-icon { font-size: 3rem; opacity: 0.5; }
.card-body { padding: 1.2rem; }
.card-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--ink);
}
.card-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--faded-ink);
  margin-bottom: 0.5rem;
}
.card-meta span { display: flex; align-items: center; gap: 0.2rem; }
.card-desc {
  font-size: 0.9rem;
  color: var(--faded-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.type-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.type-life { background: #e8d5b7; color: var(--dark-leather); }
.type-trip { background: #d5e8d4; color: #2d5a27; }
.type-experience { background: #d4d8e8; color: #2d3a5a; }
.type-project { background: #e8d4d4; color: #5a2d2d; }
.type-collection { background: #e8e4d4; color: #5a4e2d; }
.type-health { background: #d4e8e4; color: #2d5a4e; }
.type-career { background: #e4d4e8; color: #4e2d5a; }
.type-home { background: #e8ddd4; color: #5a3f2d; }
.type-education { background: #d4dde8; color: #2d3f5a; }
.type-relationship { background: #e8d4de; color: #5a2d42; }

/* Dashboard header */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.dash-header h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--ink);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44, 24, 16, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--warm-white);
  border-radius: var(--radius);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(44, 24, 16, 0.3);
}
.modal h2 {
  font-family: var(--serif);
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.modal label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--faded-ink);
  margin-bottom: 0.3rem;
  margin-top: 1rem;
}
.modal label:first-of-type { margin-top: 0; }
.modal input, .modal textarea, .modal select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--tan);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
}
.modal input:focus, .modal textarea:focus, .modal select:focus {
  outline: none;
  border-color: var(--gold-accent);
}
.modal textarea { resize: vertical; min-height: 80px; }
.modal-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Type picker grid */
.type-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.type-option {
  padding: 0.6rem 0.4rem;
  border: 1.5px solid var(--tan);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  transition: all 0.15s;
  background: var(--cream);
}
.type-option:hover { border-color: var(--leather); }
.type-option.selected { border-color: var(--gold-accent); background: #fdf5e6; }

/* Journey Detail */
.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: 1.5rem;
  min-height: calc(100vh - 60px);
}
.detail-header {
  grid-column: 1 / -1;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--tan);
}
.detail-header h1 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ink);
}
.detail-header .meta {
  display: flex;
  gap: 1rem;
  color: var(--faded-ink);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}
.detail-actions { display: flex; gap: 0.5rem; margin-top: 0.8rem; }

/* Timeline panel (left) */
.timeline-panel {
  border-right: 1px solid var(--tan);
  padding-right: 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
}
.timeline-panel h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--leather);
}
.timeline-item {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.5rem;
  border-left: 2px solid var(--tan);
  margin-left: 0.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leather);
}
.timeline-item .date {
  font-size: 0.75rem;
  color: var(--faded-ink);
  font-weight: 600;
}
.timeline-item .title {
  font-size: 0.9rem;
  color: var(--ink);
  margin-top: 0.1rem;
}
.timeline-item .source {
  font-size: 0.7rem;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Narrative panel (center) */
.narrative-panel {
  overflow-y: auto;
  max-height: calc(100vh - 180px);
}
.chapter-block {
  margin-bottom: 2rem;
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--tan);
}
.chapter-block h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--tan);
  padding-bottom: 0.5rem;
}
.chapter-narrative {
  font-family: var(--serif);
  line-height: 1.9;
  color: var(--ink);
  font-size: 1.05rem;
  white-space: pre-wrap;
}
.chapter-narrative:focus {
  outline: 2px solid var(--gold-accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.chapter-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--tan);
}

/* Item drawer (right) */
.item-drawer {
  border-left: 1px solid var(--tan);
  padding-left: 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
}
.item-drawer h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--leather);
}
.drawer-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }

.item-card {
  background: var(--cream);
  border: 1px solid var(--tan);
  border-radius: 8px;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
}
.item-card .item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.item-card .item-meta {
  font-size: 0.75rem;
  color: var(--faded-ink);
  margin-top: 0.2rem;
}
.item-card .item-delete {
  float: right;
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 0.8rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--faded-ink);
}
.empty-state h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--leather);
}

/* Auth forms */
.auth-container {
  max-width: 400px;
  margin: 3rem auto;
  background: var(--warm-white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--tan);
  box-shadow: 0 4px 15px var(--paper-shadow);
}
.auth-container h2 {
  font-family: var(--serif);
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.auth-container label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--faded-ink);
  margin-bottom: 0.3rem;
  margin-top: 1rem;
}
.auth-container input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--tan);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--cream);
}
.auth-container input:focus { outline: none; border-color: var(--gold-accent); }
.auth-container .btn { width: 100%; justify-content: center; margin-top: 1.5rem; }
.auth-footer { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: var(--faded-ink); }
.auth-footer a { color: var(--leather); }

/* Loading */
.loading { text-align: center; padding: 2rem; color: var(--faded-ink); }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  color: white;
  font-size: 0.9rem;
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--sage); }
.toast.error { background: #c0392b; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 3rem 1.5rem; }
  .hero-examples { flex-direction: column; align-items: center; }
  .journey-grid { grid-template-columns: 1fr; }
  .container { padding: 1rem; }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .timeline-panel, .item-drawer {
    border: none;
    padding: 0;
    max-height: none;
  }
  .narrative-panel { max-height: none; }
  .nav { padding: 0.8rem 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .modal { width: 95%; padding: 1.5rem; }
  .type-picker { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Temporal Mode Tabs ─── */
.mode-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--tan);
}
.mode-tab {
  padding: 0.7rem 1.4rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--faded-ink);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
}
.mode-tab:hover { color: var(--leather); }
.mode-tab.active {
  color: var(--ink);
  border-bottom-color: var(--gold-accent);
}
.mode-tab .tab-icon { margin-right: 0.4rem; }

/* ─── Live Diary (Present mode) ─── */
.live-diary-panel {
  background: var(--warm-white);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}
.live-diary-panel h3 {
  font-family: var(--serif);
  color: var(--leather);
  margin-bottom: 1rem;
}
.diary-input-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.diary-input-row textarea {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--tan);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
  min-height: 60px;
}
.diary-input-row textarea:focus {
  outline: none;
  border-color: var(--gold-accent);
}
.diary-meta-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.diary-meta-row input, .diary-meta-row select {
  padding: 0.4rem 0.6rem;
  border: 1.5px solid var(--tan);
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--cream);
  color: var(--ink);
}
.diary-meta-row input:focus, .diary-meta-row select:focus {
  outline: none;
  border-color: var(--gold-accent);
}
.diary-feed {
  max-height: 500px;
  overflow-y: auto;
  margin-top: 1rem;
}
.diary-entry {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem;
  border-bottom: 1px solid var(--tan);
  animation: fadeIn 0.3s ease-in;
}
.diary-entry:last-child { border-bottom: none; }
.diary-entry-time {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--faded-ink);
  font-weight: 600;
  width: 60px;
  padding-top: 0.15rem;
}
.diary-entry-content {
  flex: 1;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.5;
}
.diary-entry-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sage);
  margin-bottom: 0.2rem;
}
.diary-entry-location {
  font-size: 0.8rem;
  color: var(--clay);
  margin-top: 0.2rem;
  font-style: italic;
}
.diary-entry-actions {
  flex-shrink: 0;
  display: flex;
  gap: 0.3rem;
}
.diary-entry-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--faded-ink);
  padding: 0.2rem;
}
.diary-entry-actions button:hover { color: var(--ink); }
.diary-entry-actions .delete-btn:hover { color: #c0392b; }
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--sage);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e74c3c;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Tips (Future mode) ─── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.destination-card {
  background: var(--warm-white);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.destination-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--paper-shadow);
}
.destination-header {
  background: linear-gradient(135deg, var(--dark-leather) 0%, var(--leather) 100%);
  padding: 1rem 1.2rem;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.destination-header h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0;
}
.destination-count {
  background: rgba(255,255,255,0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
}
.tip-item {
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--tan);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.tip-item:last-child { border-bottom: none; }
.tip-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.4;
}
.tip-category {
  flex-shrink: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--tan);
  color: var(--dark-leather);
}
.tip-source {
  font-size: 0.75rem;
  color: var(--faded-ink);
  margin-top: 0.2rem;
}
.tip-delete {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.1rem 0.3rem;
}

/* ─── People / Life Stories ─── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.person-card {
  background: var(--warm-white);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  padding: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.person-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--paper-shadow);
}
.person-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--leather) 0%, var(--dark-leather) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
}
.person-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.person-card h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.person-relationship {
  font-size: 0.85rem;
  color: var(--faded-ink);
  font-style: italic;
}
.person-story-count {
  font-size: 0.8rem;
  color: var(--sage);
  margin-top: 0.5rem;
}

/* Person detail / interview */
.story-list {
  margin-top: 1rem;
}
.story-card {
  background: var(--cream);
  border: 1px solid var(--tan);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}
.story-question {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--leather);
  font-style: italic;
  margin-bottom: 0.4rem;
}
.story-answer {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-wrap;
}
.story-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--faded-ink);
}
.story-category-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--tan);
  color: var(--dark-leather);
}
.interview-questions {
  margin-top: 1rem;
  background: var(--warm-white);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.interview-questions h4 {
  font-family: var(--serif);
  color: var(--leather);
  margin-bottom: 0.8rem;
}
.interview-question-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.4rem;
  background: var(--cream);
  border: 1px solid var(--tan);
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.interview-question-btn:hover {
  border-color: var(--gold-accent);
  background: #fdf5e6;
}

/* ─── Quick Capture FAB ─── */
.quick-capture-fab {
  position: fixed;
  bottom: 2rem;
  right: 6rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-accent);
  color: var(--ink);
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 150;
}
.quick-capture-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.5);
}
.quick-capture-menu {
  position: fixed;
  bottom: 6rem;
  right: 5.5rem;
  background: var(--warm-white);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px var(--paper-shadow);
  padding: 0.5rem;
  z-index: 150;
  display: none;
  min-width: 180px;
}
.quick-capture-menu.active { display: block; }
.quick-capture-option {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
.quick-capture-option:hover { background: var(--cream); }
.quick-capture-option .qc-icon { margin-right: 0.4rem; }

/* ─── Temporal mode badge on cards ─── */
.mode-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.4rem;
}
.mode-past { background: #e8d5b7; color: var(--dark-leather); }
.mode-present { background: #d4e8d4; color: #2d5a27; }
.mode-future { background: #d4d8e8; color: #2d3a5a; }

/* ─── Responsive additions ─── */
@media (max-width: 768px) {
  .mode-tabs { overflow-x: auto; }
  .mode-tab { font-size: 0.9rem; padding: 0.6rem 1rem; white-space: nowrap; }
  .tips-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .diary-input-row { flex-direction: column; }
  .diary-meta-row { flex-direction: column; }
  .quick-capture-fab { bottom: 1.5rem; right: 1.5rem; }
  .quick-capture-menu { bottom: 5rem; right: 1rem; }
}

@media (max-width: 480px) {
  .destination-header h4 { font-size: 1rem; }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--ink);
  color: var(--gold-accent);
  padding: 0.5rem 1rem;
  z-index: 999;
}
.skip-link:focus { top: 0; }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}
