/* Guestbook — cozy site theme with a few old-school touches. */

.gb-sign {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

.gb-sign-title {
  margin: 0 0 1.2rem;
  text-align: center;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}

.gb-row {
  display: flex;
  gap: 0.9rem;
}

.gb-row .gb-field { flex: 1; }

.gb-field {
  display: block;
  margin-bottom: 1rem;
  position: relative;
}

.gb-field > span,
.gb-field legend {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.req { color: var(--primary); }
.gb-opt { color: var(--muted); font-weight: 400; font-size: 0.8rem; }

.gb-field input[type="text"],
.gb-field input[type="url"],
.gb-field textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: var(--card);
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.gb-field input:focus,
.gb-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.gb-field textarea { resize: vertical; }

.gb-count {
  position: absolute;
  right: 0.2rem;
  bottom: -1.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.gb-moods {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

.gb-mood-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gb-moods .pill { font-size: 0.9rem; }

/* Honeypot — visually hidden, still focusable-off for bots. */
.gb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Entries ---- */

.gb-entries-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
}

.gb-stat {
  font-family: "Nunito", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.gb-status {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.gb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gb-entry {
  background: var(--card);
  border: 2px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
  animation: cardPop 0.3s cubic-bezier(0.17, 0.89, 0.32, 1.275);
}

.gb-entry-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin-bottom: 0.5rem;
}

.gb-entry-mood { font-size: 1.15rem; line-height: 1; }

.gb-entry-name {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.gb-entry-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1.5px dotted var(--primary);
}

.gb-entry-from {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.gb-entry-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.gb-entry-msg {
  margin: 0;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.gb-empty {
  text-align: center;
  color: var(--muted);
  padding: 1.5rem;
}

@media (max-width: 500px) {
  .gb-row { flex-direction: column; gap: 0; }
  .gb-entry-date { margin-left: 0; width: 100%; }
}
