/* ============================================
   GUESTBOOK — TEMA JULIO HENRIQUE
   Paleta: cinza-azulado + azul + roxo
   ============================================ */

body {
  background: radial-gradient(circle at 20% 0%, #1c2030 0%, #16181d 50%, #12141a 100%);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.95em;
  line-height: 1.65;
  color: #b4b8c2;
  margin: 0;
  padding: 1rem;
}

/* Título com gradiente (destaque principal) */
h1 {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 1.8em;
  letter-spacing: -0.01em;
  color: #e6e8ec; /* fallback */
  background: linear-gradient(90deg, #6ba3e8, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-block: 0 0.5em;
}

a {
  color: #6ba3e8;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: #a78bfa;
}

main {
  width: 100%;
  margin: auto;
}

/* Container com borda sutil + barra de gradiente no topo */
.container {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1e2128 0%, #1a1d24 100%);
  padding: 2em;
  border-radius: 10px;
  max-width: 69em;
  margin: 0 auto;
  border: 1px solid #2a2e38;
  box-shadow:
    0 0 0 1px rgba(107, 163, 232, 0.06),
    0 18px 40px -20px rgba(0, 0, 0, 0.85);
}

.container::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #6ba3e8, #a78bfa, #6ba3e8);
  opacity: 0.9;
}

/* Campos de formulário */
input[type="text"],
input[type="url"],
input[type="email"],
textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  padding: 0.6em 0.7em;
  margin-bottom: 1em;
  background: #16181d;
  color: #e6e8ec;
  border: 1px solid #2a2e38;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]::placeholder,
input[type="url"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: #6b7280;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

/* Botão de envio (destaque com gradiente) */
input[type="submit"] {
  background: linear-gradient(135deg, #4a7bc8, #7c5cbf);
  color: #fff;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.15em;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 6px;
  padding: 0.6em 1.4em;
  cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(124, 92, 191, 0.9);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

input[type="submit"]:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(124, 92, 191, 1);
}

input[type="submit"]:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Créditos e cabeçalhos internos */
#guestbooks___guestbook-made-with {
  text-align: right;
  font-size: 0.85em;
  color: #6b7280;
}

#guestbooks___guestbook-messages-header {
  margin-top: 1em;
  color: #e6e8ec;
}

#guestbooks___guestbook-messages-container {
  margin-top: 1em;
}

hr {
  border: 0;
  border-top: 1px dashed #2a2e38;
  margin: 1.2em 0;
}

/* Respostas (reply) */
.guestbook-message-reply {
  margin-left: 2.5rem;
  padding-left: 1rem;
  border-left: 3px solid #a78bfa;
  opacity: 0.95;
}

.guestbook-message-reply blockquote {
  margin: 0;
  padding-left: 0;
  border-left: none;
}

/* Proof of Work (anti-bot) */
.guestbooks___pow-container {
  margin: 0.75em 0;
}

.guestbooks___pow-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  user-select: none;
  font-size: 0.95em;
  color: #b4b8c2;
}

.guestbooks___pow-checkbox-label input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
  accent-color: #a78bfa;
}

.guestbooks___pow-label-text--loading {
  opacity: 0.7;
}

.guestbooks___pow-label-text--verified {
  color: #7fd8b8; /* mantém o "verde" de sucesso, mas em tom que combina */
}

.guestbooks___pow-label-text--error {
  color: #ff6b6b;
}

/* Responsivo */
@media (max-width: 1200px) {
  main {
    width: 85%;
  }
}

@media (orientation: portrait) {
  main {
    width: 100%;
    padding: 0;
    margin: 0 auto;
  }
}