/* =============================================
   journal.css — styles for the journal page
   ============================================= */

/* --- page title --- */
.journal-title-section {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.journal-title-section h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.journal-subtitle {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
}


/* --- filter bar --- */
.journal-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  margin: 0 auto 1.5rem;
  max-width: 860px;
  background: var(--card-bg, rgba(255,255,255,0.5));
  border: 1px solid var(--border-color, #ddd);
  border-radius: 12px;
}

.filter-label {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-right: 0.25rem;
  white-space: nowrap;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-color, #ccc);
  background: transparent;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
  color: inherit;
}

.filter-btn img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.filter-btn:hover {
  background: var(--hover-bg, rgba(0,0,0,0.06));
}

.filter-btn.active {
  background: var(--accent-color, #f9a8d4);
  border-color: var(--accent-color, #f9a8d4);
  font-weight: bold;
}


/* --- entries container --- */
.journal-entries {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 3rem;
}


/* --- individual entry card --- */
.journal-entry {
  background: var(--card-bg, rgba(255,255,255,0.55));
  border: 1px solid var(--border-color, #ddd);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.2s;
}

.journal-entry:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}


/* --- byline: author badge + date --- */
.entry-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.entry-author-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

.entry-author-badge:hover {
  opacity: 0.75;
}

.entry-author-badge img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color, #ddd);
}

.entry-author-badge span {
  font-size: 0.85rem;
  font-weight: bold;
}

.entry-date {
  font-size: 0.78rem;
  opacity: 0.55;
}


/* --- entry title --- */
.entry-title {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}


/* --- entry body text --- */
.entry-body p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 0.6rem;
}

.entry-body p:last-child {
  margin-bottom: 0;
}


/* --- per-alter accent colours on the left border ---
   add more as needed! match data-author values.     */

.journal-entry[data-author="mer"] {
  border-left: 4px solid #a8d8ea;
}

.journal-entry[data-author="tinabella"] {
  border-left: 4px solid #f9c6d0;
}

.journal-entry[data-author="madi"] {
  border-left: 4px solid #c3b1e1;
}

.journal-entry[data-author="ravenpaw"] {
  border-left: 4px solid #b5c9a1;
}

.journal-entry[data-author="artemi"] {
  border-left: 4px solid #f4c896;
}

.journal-entry[data-author="ovie"] {
  border-left: 4px solid #a9bcd0;
}

.journal-entry[data-author="vladi"] {
  border-left: 4px solid #c9b99a;
}

.journal-entry[data-author="mickey"] {
  border-left: 4px solid #f7b2b2;
}

.journal-entry[data-author="harper"] {
  border-left: 4px solid #d4b8c7;
}

.journal-entry[data-author="rory"] {
  border-left: 4px solid #b8d4c8;
}

.journal-entry[data-author="skylar"] {
  border-left: 4px solid #fde89a;
}

.journal-entry[data-author="morgan"] {
  border-left: 4px solid #b0b0b0;
}


/* =============================================
   alter page — journal preview section
   ============================================= */

.alter-journal-preview {
  margin-top: 20px;
}

.alter-journal-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.alter-journal-header h2 {
  margin: 0;
}

.journal-see-all {
  font-size: 0.8rem;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s;
  color: inherit;
}

.journal-see-all:visited {
  color: inherit;
}

.journal-see-all:hover {
  opacity: 1;
}

/* clickable preview card */
.journal-preview-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg, rgba(255,255,255,0.45));
  border: 1px solid var(--border-color, #ddd);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.65rem;
  transition: box-shadow 0.15s, opacity 0.15s;
}

.journal-preview-card:last-child {
  margin-bottom: 0;
}

.journal-preview-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  opacity: 0.85;
}

/* left accent — reuses same author colours */
.journal-preview-card[data-author="mer"]       { border-left: 4px solid #a8d8ea; }
.journal-preview-card[data-author="tinabella"] { border-left: 4px solid #f9c6d0; }
.journal-preview-card[data-author="madi"]      { border-left: 4px solid #c3b1e1; }
.journal-preview-card[data-author="ravenpaw"]  { border-left: 4px solid #b5c9a1; }
.journal-preview-card[data-author="artemi"]    { border-left: 4px solid #f4c896; }
.journal-preview-card[data-author="ovie"]      { border-left: 4px solid #a9bcd0; }
.journal-preview-card[data-author="vladi"]     { border-left: 4px solid #c9b99a; }
.journal-preview-card[data-author="mickey"]    { border-left: 4px solid #f7b2b2; }
.journal-preview-card[data-author="harper"]    { border-left: 4px solid #d4b8c7; }
.journal-preview-card[data-author="rory"]     { border-left: 4px solid #b8d4c8; }
.journal-preview-card[data-author="skylar"]     { border-left: 4px solid #fde89a; }
.journal-preview-card[data-author="morgan"]    { border-left: 4px solid #b0b0b0; }

.journal-preview-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.journal-preview-meta img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color, #ddd);
}

.journal-preview-date {
  font-size: 0.75rem;
  opacity: 0.55;
}

.journal-preview-title {
  font-size: 0.9rem;
  font-weight: bold;
  margin: 0 0 0.25rem;
}

.journal-preview-snippet {
  font-size: 0.82rem;
  opacity: 0.65;
  margin: 0;
  line-height: 1.5;

  /* clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* --- responsive --- */
@media (max-width: 600px) {
  .journal-filters {
    padding: 0.75rem 1rem;
  }

  .journal-entries {
    padding: 0 0.75rem 2rem;
  }

  .journal-entry {
    padding: 1rem 1.1rem;
  }

  .entry-author-badge img {
    width: 30px;
    height: 30px;
  }
}