/* ─── DREAM MEANING INDEX PAGE ─── */

footer { border-top: 1px solid var(--border-light); }

/* ─── PAGE HEADER ─── */
.page-header {
  position: relative; z-index: 1;
  max-width: 960px; margin: 0 auto;
  padding: 52px 20px 0;
  opacity: 0; animation: fadeUp 0.55s ease forwards 0.05s;
}
.header-eyebrow {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; font-weight: 500;
}
.header-title {
  font-family: 'Lora', serif;
  font-size: clamp(26px, 4vw, 36px); font-weight: 400;
  line-height: 1.2; color: var(--text-primary); margin-bottom: 12px;
}
.header-title em { font-style: italic; color: var(--accent); }
.header-sub { font-size: 14px; color: var(--text-secondary); line-height: 1.6; max-width: 480px; }

/* ─── SEARCH ─── */
.search-wrap {
  position: relative; z-index: 1;
  max-width: 960px; margin: 28px auto 0; padding: 0 20px;
  opacity: 0; animation: fadeUp 0.55s ease forwards 0.15s;
}
.search-box { position: relative; max-width: 420px; }
.search-input {
  width: 100%; padding: 10px 16px 10px 38px;
  font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--text-primary);
  background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 24px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 6px rgba(44,40,37,0.05);
}
.search-input:focus { border-color: var(--accent-light); box-shadow: 0 2px 12px rgba(139,111,94,0.1); }
.search-input::placeholder { color: var(--text-hint); }
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-hint); pointer-events: none;
}
.search-icon svg { width: 14px; height: 14px; display: block; }

/* ─── FILTER TABS ─── */
.filter-wrap {
  position: relative; z-index: 1;
  max-width: 960px; margin: 24px auto 0; padding: 0 20px;
  opacity: 0; animation: fadeUp 0.55s ease forwards 0.2s;
}
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border: 1.5px solid var(--border); border-radius: 20px;
  font-size: 12.5px; color: var(--text-secondary);
  background: transparent; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: all 0.15s; white-space: nowrap;
}
.filter-btn:hover { border-color: var(--accent-light); color: var(--accent); background: var(--accent-lighter); }
.filter-btn.active { background: var(--text-primary); color: var(--bg); border-color: var(--text-primary); }
.filter-btn .count { font-size: 11px; opacity: 0.55; }
.filter-btn.active .count { opacity: 0.6; }

/* ─── MAIN GRID ─── */
.grid-wrap {
  position: relative; z-index: 1;
  max-width: 960px; margin: 32px auto 0; padding: 0 20px 80px;
}
.results-meta {
  font-size: 12px; color: var(--text-hint); margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.4s ease forwards 0.3s;
}
.results-meta span { color: var(--text-secondary); font-weight: 500; }
.empty-state { display: none; text-align: center; padding: 64px 20px; color: var(--text-hint); }
.empty-state.show { display: block; }
.empty-state-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 14px; line-height: 1.6; }
.entries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ─── ENTRY CARD ─── */
.entry-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; cursor: pointer; text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  opacity: 0; animation: cardIn 0.45s ease forwards;
}
.entry-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(44,40,37,0.09); border-color: var(--accent-light); }
.entry-art { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; background: var(--bg-warm); flex-shrink: 0; }
.entry-art svg { width: 100%; height: 100%; display: block; }
.entry-body { padding: 13px 15px 15px; flex: 1; display: flex; flex-direction: column; }
.entry-tag { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 6px; }
.entry-title { font-family: 'Lora', serif; font-size: 15px; font-weight: 400; line-height: 1.35; color: var(--text-primary); margin-bottom: 7px; }
.entry-title em { font-style: italic; }
.entry-desc {
  font-size: 12px; color: var(--text-secondary); line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.entry-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.entry-freq { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-hint); }
.freq-dots { display: flex; gap: 2px; }
.freq-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-light); }
.freq-dot.filled { background: var(--accent); }
.entry-arrow { font-size: 11px; color: var(--text-hint); transition: color 0.15s, transform 0.15s; }
.entry-card:hover .entry-arrow { color: var(--accent); transform: translateX(2px); }

/* Featured card (spans 2 cols) */
.entry-card.featured { grid-column: span 2; flex-direction: row; }
.entry-card.featured .entry-art { width: 200px; flex-shrink: 0; aspect-ratio: unset; }
.entry-card.featured .entry-title { font-size: 17px; }
.entry-card.featured .entry-desc { -webkit-line-clamp: 3; }

/* ─── CTA STRIP ─── */
.cta-strip {
  position: relative; z-index: 1;
  background: linear-gradient(to bottom, var(--bg-warm), var(--bg));
  padding: 48px 20px 56px; text-align: center;
}
.cta-inner { max-width: 500px; margin: 0 auto; }
.cta-title { font-family: 'Lora', serif; font-size: 22px; font-weight: 400; color: var(--text-primary); margin-bottom: 8px; }
.cta-title em { font-style: italic; color: var(--accent); }
.cta-sub { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: var(--text-primary); color: var(--bg);
  border: none; border-radius: 24px; font-size: 13.5px; font-weight: 500;
  font-family: 'Inter', sans-serif; text-decoration: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.cta-btn:hover { background: #3d3632; transform: translateY(-1px); }

/* ─── ANIMATIONS ─── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── MOBILE ─── */
@media (max-width: 760px) {
  .entries-grid { grid-template-columns: repeat(2, 1fr); }
  .entry-card.featured { grid-column: span 2; flex-direction: column; }
  .entry-card.featured .entry-art { width: 100%; aspect-ratio: 16/9; }
}
@media (max-width: 500px) {
  .entries-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .entry-card.featured { grid-column: span 2; }
  footer { flex-direction: column; gap: 12px; align-items: flex-start; }
  .nav-link-explore-hide { display: none; }
}
