/* Archive page styles — warm, editorial, matches landing page */

.archive-page {
  padding: 64px 48px;
  min-height: calc(100vh - 80px);
}

.archive-container {
  max-width: 1100px;
  margin: 0 auto;
}

.archive-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.archive-eyebrow {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.archive-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--fg);
  padding-top: 16px;
}

.add-memory-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.add-memory-btn:hover {
  background: var(--accent-dark);
}

/* Loading */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px;
  gap: 16px;
  color: var(--fg-muted);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 32px;
}

.empty-icon {
  color: var(--border);
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}

.empty-sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

.empty-cta {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.empty-cta:hover {
  background: #333;
}

/* Memory grid */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.memory-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.memory-card:hover {
  box-shadow: 0 6px 24px rgba(26,26,26,0.08);
}

.memory-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.memory-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.video-placeholder {
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--bg-warm);
}

.memory-body {
  padding: 20px 22px;
}

.memory-summary {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.65;
  margin-bottom: 12px;
}

.memory-status {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.memory-status.processing {
  color: var(--accent);
}

.memory-date {
  font-size: 0.72rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* Utilities */
.hidden { display: none !important; }

@media (max-width: 768px) {
  .archive-page { padding: 48px 24px; }
  .archive-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .memory-grid { grid-template-columns: 1fr; }
}