/* ============================================================
   community.css -- Guestbook, forum.
   Part of the split from the original single style.css.
   ============================================================ */

/* ---------- GUESTBOOK ---------- */
.guestbook-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 15rem;
  overflow-y: auto;
}

.guestbook-list li {
  background: var(--fluoro-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  font-size: 1.02rem;
}

.guestbook-list li strong {
  color: var(--stain-brown);
}

.guestbook-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.guestbook-form[hidden] {
  display: none;
}

.guestbook-form input {
  flex: 1 1 12rem;
  font-family: var(--font-term);
  font-size: 1.05rem;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--fluoro-white);
  color: var(--ink);
}

.guestbook-form input:focus-visible {
  outline: 3px solid var(--cursed-green);
  outline-offset: 1px;
}


.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--fluoro-white);
  font-family: var(--font-term);
  font-size: 1.05rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-md);
  z-index: var(--z-toast);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-align: center;
  max-width: 90vw;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- FORUM ---------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.25rem;
}

.thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.thread-row {
  display: block;
  background: var(--fluoro-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.thread-row:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 rgba(var(--shadow-rgb), 0.24), var(--shadow-md);
}

.thread-row:focus-visible {
  outline: 3px solid var(--cursed-green);
  outline-offset: 2px;
}

.thread-row-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.thread-row-meta {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
}

.thread-article {
  max-width: 42rem;
}

.thread-article h1 {
  font-weight: 700;
  font-size: clamp(1.4rem, 5vw, 2rem);
  margin: 0 0 0.4rem;
}

.thread-post {
  background: var(--fluoro-white);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--stain-brown);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin: 1.25rem 0 1.75rem;
  box-shadow: var(--shadow-sm);
}

.thread-post-author {
  font-family: var(--font-term);
  color: var(--stain-brown);
  margin: 0 0 0.5rem;
}

.thread-post p:last-child {
  margin: 0;
  line-height: 1.55;
}

.replies-heading {
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.4rem;
}

.reply-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.reply-item {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
}

.reply-author {
  font-family: var(--font-term);
  color: var(--stain-brown);
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.reply-body {
  margin: 0;
  line-height: 1.5;
}

/* ---------- EMPLOYEE OF THE MONTH ---------- */
.eotm-spotlight {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--fluoro-white);
  box-shadow: 3px 3px 0 var(--ink), var(--shadow-md);
  margin-bottom: 1.5rem;
}

.eotm-spotlight-badge {
  font-size: 2rem;
  color: var(--wall-yellow);
  margin-bottom: 0.5rem;
}

.eotm-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.eotm-blurb {
  color: var(--stain-brown);
  font-style: italic;
  max-width: 46ch;
  margin: 0.25rem auto 1rem;
}

.eotm-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-family: var(--font-term);
  font-size: 0.85rem;
}

.eotm-runners-up-heading {
  font-family: var(--font-term);
  font-size: 1rem;
  color: var(--stain-brown);
  margin: 1.5rem 0 0.5rem;
}

.eotm-runner-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--border-soft);
}

.eotm-runner-row:last-child {
  border-bottom: none;
}

.eotm-runner-row:hover {
  background: rgba(var(--tint-rgb), 0.06);
}

.eotm-runner-row:focus-visible {
  outline: 3px solid var(--stain-brown);
}

.eotm-rank {
  font-family: var(--font-term);
  font-weight: 700;
  color: var(--stain-brown);
}
