/* Feed + Thought permalink pages — warm theme */

body {
  background: var(--warm-bg);
  color: var(--warm-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ─────────────────────────────────────── */

.feed-page,
.thought-page {
  flex: 1;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 3rem;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Feed header ────────────────────────────────── */

.feed-header {
  margin-bottom: 2.5rem;
}

.feed-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
}

.feed-subtitle {
  color: var(--warm-muted);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* ── Feed list ──────────────────────────────────── */

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── Thought bubble (feed cards + individual page) ── */

.feed-card,
.thought-bubble {
  position: relative;
  background: #fff;
  border-radius: 32px;
  padding: 1.75rem 2rem 1.5rem;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.07),
    0 1px 6px rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 1rem;
}

/* Bubble tail — two stacked circles, classic thought bubble */
.feed-card::before,
.feed-card::after,
.thought-bubble::before,
.thought-bubble::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Larger circle */
.feed-card::before,
.thought-bubble::before {
  width: 18px;
  height: 18px;
  bottom: -24px;
  left: 32px;
}

/* Smaller circle */
.feed-card::after,
.thought-bubble::after {
  width: 10px;
  height: 10px;
  bottom: -38px;
  left: 24px;
}

.feed-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.feed-card-quote {
  font-family: 'Courier Prime', monospace;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  margin: 0 0 1rem;
  color: var(--warm-text);
}

.feed-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--warm-muted);
}

/* ── Mood badge ─────────────────────────────────── */

.mood-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.mood-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.mood-peaceful    { color: var(--mood-peaceful); background: var(--mood-peaceful-bg); }
.mood-content     { color: var(--mood-content); background: var(--mood-content-bg); }
.mood-contemplative { color: var(--mood-contemplative); background: var(--mood-contemplative-bg); }
.mood-curious     { color: var(--mood-curious); background: var(--mood-curious-bg); }
.mood-active      { color: var(--mood-active); background: var(--mood-active-bg); }
.mood-excited     { color: var(--mood-excited); background: var(--mood-excited-bg); }

/* ── Full thought page ──────────────────────────── */

.thought-bubble {
  padding: 2.5rem 2.25rem;
  margin-bottom: 3rem;
}

.thought-quote-full {
  font-family: 'Courier Prime', monospace;
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  line-height: 1.65;
  margin: 0 0 1.5rem;
  color: var(--warm-text);
}

.thought-meta-full {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--warm-muted);
}

/* ── Breadcrumb (thought page) ──────────────────── */

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--warm-muted);
}

.breadcrumb a {
  color: var(--warm-accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 0.4rem;
  opacity: 0.4;
}

/* ── States ─────────────────────────────────────── */

.feed-loading,
.feed-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--warm-muted);
  font-size: 1rem;
}

.feed-empty .cta-button {
  margin-top: 1rem;
}

/* ── Footer ─────────────────────────────────────── */

.feed-footer {
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--warm-muted);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--warm-accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.feed-footer p {
  margin: 0;
}


/* ── Responsive ─────────────────────────────────── */

@media (max-width: 600px) {
  .thought-bubble {
    padding: 1.75rem 1.25rem;
    border-radius: 24px;
    margin-bottom: 2.5rem;
  }

  .feed-card {
    padding: 1.25rem 1rem;
    border-radius: 24px;
  }

  /* Smaller bubble tails on mobile */
  .feed-card::before,
  .thought-bubble::before {
    width: 14px;
    height: 14px;
    bottom: -20px;
    left: 24px;
  }

  .feed-card::after,
  .thought-bubble::after {
    width: 8px;
    height: 8px;
    bottom: -32px;
    left: 18px;
  }

}
