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

.guestbook {
  max-width: 600px;
  margin: 30px auto;
  padding: 16px;
  border: 3px solid gold;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15), inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.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;
}

/* ======================== */
/* THEME SKINS              */
/* ======================== */

/* Classic: neon glow border */
.theme-classic .guestbook {
  border-color: gold;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15), 0 0 40px rgba(255, 215, 0, 0.05), inset 0 0 30px rgba(0, 0, 0, 0.3);
}

/* Hacker: green terminal border */
.theme-hacker .guestbook {
  border-color: #0f0;
  background: rgba(0, 10, 0, 0.5);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.4);
}
.theme-hacker .guestbook-header {
  background: linear-gradient(135deg, #001a00, #000, #001a00);
  border-color: #0f0;
}
.theme-hacker .guestbook-header h2 { color: #0f0; text-shadow: 0 0 10px rgba(0, 255, 0, 0.6); }
.theme-hacker .guestbook-header p { color: #0f0; text-shadow: 0 0 6px rgba(0, 255, 0, 0.4); }
.theme-hacker .guestbook-form { border-color: #0f0; }
.theme-hacker .guestbook-form label { color: #0f0; text-shadow: 0 0 4px rgba(0, 255, 0, 0.3); }
.theme-hacker .guestbook-name { color: #0f0; text-shadow: 0 0 6px rgba(0, 255, 0, 0.4); }
.theme-hacker .guestbook-submit { border-color: #0f0; color: #0f0; text-shadow: 0 0 6px rgba(0, 255, 0, 0.4); }
.theme-hacker .guestbook-submit:hover { background: #0f0; color: #000; }
.theme-hacker .guestbook-reply-btn { border-color: #0f0; color: #0f0; }
.theme-hacker .guestbook-reply-btn:hover { background: #0f0; color: #000; }
.theme-hacker .guestbook-pagination button { border-color: #0f0; color: #0f0; }
.theme-hacker .guestbook-pagination button:hover,
.theme-hacker .guestbook-pagination button.active { background: #0f0; color: #000; }

/* Vaporwave: pink/cyan gradient border */
.theme-vaporwave .guestbook {
  border: 3px solid;
  border-image: linear-gradient(135deg, #ff6ad5, #c774e8, #ad8cff, #8795e8, #94d0ff) 1;
  background: rgba(20, 0, 30, 0.5);
  box-shadow: 0 0 20px rgba(199, 116, 232, 0.15), inset 0 0 30px rgba(0, 0, 0, 0.3);
}
.theme-vaporwave .guestbook-header {
  background: linear-gradient(135deg, #1a0020, #0d0015, #1a0020);
  border-color: #c774e8;
}
.theme-vaporwave .guestbook-header h2 { color: #ff6ad5; text-shadow: 0 0 10px rgba(255, 106, 213, 0.6); }
.theme-vaporwave .guestbook-header p { color: #94d0ff; text-shadow: 0 0 6px rgba(148, 208, 255, 0.4); }
.theme-vaporwave .guestbook-form { border-color: #c774e8; }
.theme-vaporwave .guestbook-form label { color: #94d0ff; text-shadow: 0 0 4px rgba(148, 208, 255, 0.3); }
.theme-vaporwave .guestbook-name { color: #ff6ad5; text-shadow: 0 0 6px rgba(255, 106, 213, 0.4); }
.theme-vaporwave .guestbook-submit { border-color: #ff6ad5; color: #ff6ad5; text-shadow: 0 0 6px rgba(255, 106, 213, 0.4); }
.theme-vaporwave .guestbook-submit:hover { background: #ff6ad5; color: #000; }
.theme-vaporwave .guestbook-reply-btn { border-color: #94d0ff; color: #94d0ff; }
.theme-vaporwave .guestbook-reply-btn:hover { background: #94d0ff; color: #000; }
.theme-vaporwave .guestbook-pagination button { border-color: #ff6ad5; color: #ff6ad5; }
.theme-vaporwave .guestbook-pagination button:hover,
.theme-vaporwave .guestbook-pagination button.active { background: #ff6ad5; color: #000; }

/* Desktop (Win95): flat gray border, system colors */
.theme-desktop .guestbook {
  border: 2px solid;
  border-color: #dfdfdf #404040 #404040 #dfdfdf;
  background: #c0c0c0;
  box-shadow: 1px 1px 0 #000;
  border-radius: 0;
}
.theme-desktop .guestbook-header {
  background: linear-gradient(90deg, #000080, #1084d0);
  border: none;
}
.theme-desktop .guestbook-header h2 { color: #fff; text-shadow: none; }
.theme-desktop .guestbook-header p { color: #fff; text-shadow: none; }
.theme-desktop .guestbook-comment { background: #fff; border: 1px solid #808080; }
.theme-desktop .guestbook-name { color: #000080; text-shadow: none; }
.theme-desktop .guestbook-date { color: #808080; }
.theme-desktop .guestbook-message { color: #000; }
.theme-desktop .guestbook-form { border: 2px inset #dfdfdf; background: #fff; }
.theme-desktop .guestbook-form label { color: #000; text-shadow: none; }
.theme-desktop .guestbook-form input[type="text"],
.theme-desktop .guestbook-form textarea { background: #fff; border: 2px inset #808080; color: #000; }
.theme-desktop .guestbook-submit {
  border: 2px solid; border-color: #dfdfdf #404040 #404040 #dfdfdf;
  background: #c0c0c0; color: #000; text-shadow: none;
}
.theme-desktop .guestbook-submit:hover { background: #d0d0d0; }
.theme-desktop .guestbook-submit:active { border-color: #404040 #dfdfdf #dfdfdf #404040; }
.theme-desktop .guestbook-reply-btn { border-color: #808080; color: #000080; text-shadow: none; }
.theme-desktop .guestbook-reply-btn:hover { background: #000080; color: #fff; }
.theme-desktop .guestbook-reply-form { background: #f0f0f0; border-color: #808080; }
.theme-desktop .guestbook-empty { color: #808080; }
.theme-desktop .guestbook-status.success { color: #008000; border-color: #008000; }
.theme-desktop .guestbook-status.error { color: #ff0000; border-color: #ff0000; }
.theme-desktop .guestbook-pagination button { border: 2px solid; border-color: #dfdfdf #404040 #404040 #dfdfdf; background: #c0c0c0; color: #000; text-shadow: none; }
.theme-desktop .guestbook-pagination button:hover { background: #d0d0d0; }
.theme-desktop .guestbook-pagination button.active { border-color: #404040 #dfdfdf #dfdfdf #404040; background: #a0a0a0; }
