/* ================================
   FILMS OF APRIL — GUESTBOOK (FANCIER)
   ================================ */

.guestbook {
  position: relative;
  background: var(--page-bg);
  overflow: hidden;
}

.gb-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  /* soft vignette + subtle warm tint */
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(0,0,0,0.06), transparent 60%),
    radial-gradient(900px 500px at 85% 18%, rgba(0,0,0,0.05), transparent 62%),
    radial-gradient(900px 900px at 50% 90%, rgba(0,0,0,0.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0));

  /* “grain” without assets */
  filter: contrast(1.02);
  opacity: 0.9;
}

.guestbook > * {
  position: relative;
  z-index: 1;
}

/* ================= HERO ================= */

.guestbook-hero {
  padding: 5.2rem 0 1.6rem;
  max-width: 1020px;
}

.guestbook-hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.60);
  margin-bottom: 0.9rem;
}

.guestbook-hero__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.05;
}

.guestbook-hero__text {
  margin: 0;
  max-width: 62ch;
  line-height: 1.75;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ================= GRID ================= */

.guestbook-panel {
  padding: 1.8rem 0 5.2rem;
}

.guestbook-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.6rem;
  align-items: start;
}

/* ================= CARDS ================= */

.gb-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 18px;
  overflow: hidden;

  box-shadow:
    0 24px 60px rgba(0,0,0,0.08),
    0 8px 18px rgba(0,0,0,0.06);

  backdrop-filter: blur(10px);
}

.gb-card::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.0),
    rgba(0,0,0,0.28),
    rgba(0,0,0,0.0)
  );
  opacity: 0.22;
}

.gb-card__head {
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(0,0,0,0.02);
}

.gb-card__head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gb-card__title {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gb-card__meta {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.56);
}

/* ================= FORM ================= */

.gb-form {
  padding: 1.3rem 1.35rem 1.45rem;
}

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

.gb-field__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.62);
  margin-bottom: 0.55rem;
}

.gb-input,
.gb-textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 14px;
  padding: 0.9rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  background: rgba(255,255,255,0.86);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    background 0.2s ease;
}

.gb-textarea {
  resize: vertical;
  min-height: 130px;
}

.gb-input:focus,
.gb-textarea:focus {
  background: rgba(255,255,255,0.98);
  border-color: rgba(17, 17, 17, 0.42);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.10),
    0 6px 14px rgba(0,0,0,0.06);
}

.gb-counter {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: rgba(0,0,0,0.55);
  letter-spacing: 0.06em;
}

.gb-check {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.25rem 0 1.1rem;
  user-select: none;
}

.gb-check__box {
  width: 18px;
  height: 18px;
}

.gb-check__text {
  font-size: 0.92rem;
  color: rgba(0,0,0,0.72);
}

.gb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.gb-btn {
  border: 1px solid rgba(17, 17, 17, 0.22);
  background: rgba(255,255,255,0.65);
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.gb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.10);
}

.gb-btn--primary {
  background: #111;
  border-color: #111;
  color: #f4f1ef;
  box-shadow: 0 18px 34px rgba(0,0,0,0.16);
}

.gb-hint {
  margin: 1.15rem 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(0,0,0,0.55);
}

/* ================= SORT CHIPS ================= */

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

.gb-chip {
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.82);
  border-radius: 999px;
  padding: 0.52rem 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.gb-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.18);
}

.gb-chip.is-active {
  background: #111;
  color: #f4f1ef;
  border-color: #111;
}

/* ================= NOTES LIST (MASONRY FEEL) ================= */

.gb-list {
  padding: 1.2rem 1.2rem 1.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.gb-entry {
  position: relative;
  border: 1px solid rgba(17, 17, 17, 0.10);
  background: rgba(255,255,255,0.86);
  border-radius: 16px;
  padding: 1rem 1rem 0.95rem;
  box-shadow:
    0 18px 34px rgba(0,0,0,0.06),
    0 6px 14px rgba(0,0,0,0.04);
  overflow: hidden;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gb-entry:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 46px rgba(0,0,0,0.08),
    0 8px 18px rgba(0,0,0,0.05);
}

.gb-entry::after {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 30% 20%, rgba(0,0,0,0.06), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.05), transparent 45%);
  opacity: 0.25;
  transform: rotate(12deg);
  pointer-events: none;
}

.gb-entry.is-pinned {
  border-color: rgba(17, 17, 17, 0.22);
}

.gb-entry.is-pinned::before {
  content: "PINNED";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.86);
  color: #f4f1ef;
  z-index: 2;
}

.gb-entry__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.gb-entry__name {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gb-entry__date {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.55);
}

.gb-entry__msg {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.74);
  white-space: pre-wrap;
  word-break: break-word;
}

.gb-entry__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.gb-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.gb-empty {
  grid-column: 1 / -1;
  padding: 1.1rem 1.1rem;
  border: 1px dashed rgba(17, 17, 17, 0.22);
  border-radius: 16px;
  background: rgba(255,255,255,0.60);
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.7;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 980px) {
  .guestbook-panel__grid {
    grid-template-columns: 1fr;
  }
  .gb-list {
    grid-template-columns: 1fr;
  }
}
