/* ======================== */
/* GUESTBOOK SECTION        */
/* ======================== */

.guestbook {
  max-width: 600px;
  margin: 30px auto;
  padding: 0 10px;
}

.guestbook-header {
  border: 4px solid gold;
  padding: 12px;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #111, #000, #111);
}

.guestbook-header h2 {
  color: red;
  font-size: 1.4em;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  margin: 0 0 4px 0;
  letter-spacing: 3px;
}

.guestbook-header p {
  color: aqua;
  font-size: 0.85em;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
  margin: 0;
}

/* Comment list */
.guestbook-comments {
  margin-bottom: 20px;
}

.guestbook-comment {
  border: 1px solid #333;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #0a0a0a;
}

.guestbook-comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.guestbook-name {
  color: gold;
  font-weight: bold;
  font-size: 0.85em;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.guestbook-verified {
  color: gold;
  font-size: 0.8em;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.guestbook-date {
  color: #666;
  font-size: 0.75em;
}

.guestbook-message {
  color: #ccc;
  font-size: 0.9em;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Reply button */
.guestbook-reply-btn {
  background: none;
  border: 1px solid aqua;
  color: aqua;
  font-size: 0.7em;
  padding: 2px 8px;
  cursor: pointer;
  margin-top: 6px;
  font-family: inherit;
  letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.3);
}

.guestbook-reply-btn:hover {
  background: aqua;
  color: #000;
  text-shadow: none;
}

/* Replies */
.guestbook-replies {
  margin-left: 20px;
  border-left: 2px solid #333;
  padding-left: 10px;
  margin-top: 8px;
}

.guestbook-reply {
  padding: 6px 0;
  border-bottom: 1px solid #1a1a1a;
}

.guestbook-reply:last-child {
  border-bottom: none;
}

/* Reply form (hidden by default) */
.guestbook-reply-form {
  display: none;
  margin-left: 20px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #333;
  background: #0d0d0d;
}

.guestbook-reply-form.active {
  display: block;
}

/* Comment form */
.guestbook-form {
  border: 2px solid aqua;
  padding: 14px;
  background: #0a0a0a;
}

.guestbook-form label {
  display: block;
  color: aqua;
  font-size: 0.75em;
  margin-bottom: 4px;
  letter-spacing: 2px;
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.3);
}

.guestbook-form input[type="text"],
.guestbook-form textarea,
.guestbook-reply-form input[type="text"],
.guestbook-reply-form textarea {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #fff;
  padding: 8px;
  font-family: inherit;
  font-size: 0.85em;
  letter-spacing: 1px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.guestbook-form input[type="text"]:focus,
.guestbook-form textarea:focus,
.guestbook-reply-form input[type="text"]:focus,
.guestbook-reply-form textarea:focus {
  outline: none;
  border-color: aqua;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.3);
}

.guestbook-form textarea,
.guestbook-reply-form textarea {
  resize: vertical;
  min-height: 60px;
}

.guestbook-submit {
  display: inline-block;
  border: 2px solid gold;
  background: none;
  color: gold;
  padding: 6px 20px;
  font-family: inherit;
  font-size: 0.85em;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.guestbook-submit:hover {
  background: gold;
  color: #000;
  text-shadow: none;
}

.guestbook-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Pagination */
.guestbook-pagination {
  text-align: center;
  margin: 15px 0;
}

.guestbook-pagination button {
  background: none;
  border: 1px solid gold;
  color: gold;
  padding: 3px 10px;
  margin: 0 3px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8em;
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
}

.guestbook-pagination button:hover {
  background: gold;
  color: #000;
  text-shadow: none;
}

.guestbook-pagination button.active {
  background: gold;
  color: #000;
  text-shadow: none;
}

.guestbook-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Status messages */
.guestbook-status {
  text-align: center;
  padding: 8px;
  margin-bottom: 10px;
  font-size: 0.85em;
}

.guestbook-status.success {
  color: #0f0;
  border: 1px solid #0f0;
}

.guestbook-status.error {
  color: red;
  border: 1px solid red;
}

/* Empty state */
.guestbook-empty {
  text-align: center;
  color: #555;
  padding: 20px;
  font-size: 0.85em;
}

/* Turnstile widget */
.guestbook-turnstile {
  margin-bottom: 10px;
}
