/* ==========================================
   Coffeez Café - Estilos Globais (Retro Theme)
   ========================================== */

@font-face {
  font-family: "dogica";
  src: url("/assets/font/dogica.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "chalkier";
  src: url("/assets/font/chalkier.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

body {
  background-color: #14110F;
  /* Fundo café torrado */
  font-family: "chalkier";
  color: #FFF8E7;
  /* Texto cor de giz marfim */
  margin: 0;
  padding: 0px;
  line-height: 1.6;
  font-size: 22px; /* increased slightly for readability */
  cursor: url("/assets/cursor/cursornormal.gif"), auto;
}

/* Links globais e ponteiro customizado */
a {
  color: #3399ff;
  text-decoration: underline;
  cursor: url("/assets/cursor/cursorselect.gif"), auto;
}

a:hover {
  color: #ffff00;
}

/* Títulos */
h1 {
  font-size: 20px;
  text-align: center;
  margin-top: 30px;
  color: #fdfdfd;
}

.titulo-principal {
  font-size: 25px;
  font-family: 'dogica', sans-serif;
}

.titulo-principal .espaco-grande {
  display: inline-block;
  width: 4rem;
}



h2 {
  font-size: 16px;
  color: #F4D06F;
  /* Giz amarelo */
  margin-top: 0;
  border-bottom: 2px solid #F4D06F;
  padding-bottom: 6px;
  text-align: center;
  text-transform: uppercase;
}

h3 {
  font-size: 14px;
  text-align: center;
}


/* Texto multicolorido com animação */
.texto-multicolorido {
  background: linear-gradient(to right, #ff0000, #ff9900, #ffff00, #33cc33, #3399ff, #6633cc, #ff0000);
  background-size: 400% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  font-family: 'dogica', sans-serif;
  animation: arcoiris 5s linear infinite;
  display: inline-block;
}

@keyframes arcoiris {
  0% {
    background-position: 400% center;
  }

  100% {
    background-position: 0% center;
  }
}

/* Blocos de Conteúdo (Cards/Containers) */

/* ==========================================
   Blocos de Conteúdo (Lousa de Café)
   ========================================== */

.bloco-main {
  background-color: #1E2322;
  border: 6px solid #8B5A2B;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.6), inset 0px 0px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
}

/* Coluna esquerda */
.coluna-esquerda {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 0 30%;
  box-sizing: border-box;
}

.bloco-a1,
.bloco-b1 {
  width: 100%;
}

/* O Bloco A1 (Menu) sempre terá 33% da largura */
/* Larguras do Flexbox */
.bloco-a1 {
  box-shadow: 0 0 10px rgba(248, 255, 253, 0.5);
}

.bloco-a2 {
  flex: 1;
  box-shadow: 0 0 10px rgba(244, 208, 111, 0.4);
}

.bloco-a3 {
  flex: 1;
  box-shadow: 0 0 10px rgba(255, 183, 178, 0.4);
}

.bloco-b1 {
  box-shadow: 0 0 10px rgba(154, 250, 164, 0.4);
}

.bloco-b3 {
  box-shadow: 0 0 10px rgba(255, 89, 100, 0.4);
}

.bloco-a2,
.bloco-a3 {
  background-color: #181C1B;
  padding: 15px;
  border-radius: 6px;
  flex: 1;
  /* Estica pra preencher todo o espaço que sobrou */
  box-sizing: border-box;
}

.containerflex {
  width: 100%;
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* Estilo Base dos Blocos */
.bloco-a1,
.bloco-a2,
.bloco-a3,
.bloco-b1 {
  background-color: #181C1B;
  padding: 25px;
  border-radius: 6px;
  box-sizing: border-box;
  position: relative;
  border: none;
}

/* Pseudo Elemento Horizontal para Blocos */
.bloco-a1::before,
.bloco-a2::before,
.bloco-a3::before,
.bloco-b1::before {
  content: "";
  position: absolute;
  /* Posicionamento para cobrir topo e base, com um pequeno respiro nas laterais */
  top: 5px;
  bottom: 5px;
  left: 10px;
  right: 10px;
  pointer-events: none;
  /* Não atrapalha cliques no conteúdo */

  /* Suas imagens de giz (Brancas e Transparentes) */
  background-image: url('assets/texture/branco/pontilhado-horizontal.png'), url('assets/texture/branco/pontilhado-horizontal.png');
  background-position: top center, bottom center;
  background-repeat: repeat-x, repeat-x;
  background-size: auto 6px;
  /* Altura da linha, ajuste conforme seu desenho */

  /* Filtro para colorir a linha branca padrão para a cor base do tema (bege claro) */
  filter: sepia(1) saturate(1) hue-rotate(0deg) brightness(0.9);
  opacity: 0.8;
}

/* Pseudo elemento Vertical para Blocos */
.bloco-a1::after,
.bloco-a2::after,
.bloco-a3::after,
.bloco-b1::after {
  content: "";
  position: absolute;
  /* Posicionamento para cobrir laterais, com respiro no topo/base */
  top: 15px;
  bottom: 15px;
  left: 5px;
  right: 5px;
  pointer-events: none;

  /* Suas imagens de giz verticais (Brancas e Transparentes) */
  background-image: url('assets/texture/branco/pontilhado-vertical.png'), url('assets/texture/branco/pontilhado-vertical.png');
  background-position: center left, center right;
  background-repeat: repeat-y, repeat-y;
  background-size: 6px auto;
  /* Largura da linha vertical */

  /* Filtro idêntico para colorir */
  filter: sepia(1) saturate(1) hue-rotate(0deg) brightness(0.9);
  opacity: 0.8;
}


/* Listas customizadas */
ul {
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

/* Container de botões horizontal */
.lista-botoes-horizontal {
  list-style: none !important;
  padding: 0;
  margin: 15px 0 0 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
}

.lista-botoes-horizontal li {
  margin: 0;
}

/* Container de botoes vertical */
.lista-botoes-vertical {
  list-style: none !important;
  padding: 0;
  margin: 15px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lista-menu-vertical li {
  margin: 0;
}

.lista-menu-vertical .botao {
  display: block;
  text-align: center;
}

/* Botões */
.botao {
  display: block;
  background-color: #3D2314;
  /* Tom café escuro */
  color: #FFF8E7 !important;
  /* Texto giz creme */
  text-decoration: none !important;
  padding: 10px;
  border: 2px solid #D4A373;
  /* Borda tom caramelo */
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  font-family: 'dogica', sans-serif;
  text-align: center;
  transition: all 0.15s ease-in-out;
}

.botao:hover {
  background-color: #D4A373;
  /* Inverte pra caramelo ao passar o mouse */
  color: #14110F !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 0px #8B5A2B;
}

.botao:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0px #8B5A2B;
}

/* Guestbook specific styles */
.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.guestbook-input,
.guestbook-textarea {
  width: 100%;
  background-color: #1e1b19;
  border: 2px solid #d4a373;
  color: #fff8e7;
  padding: 10px;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: 'dogica', sans-serif;
  font-size: 14px; /* slightly larger input text */
  resize: vertical;
}

.guestbook-input:focus,
.guestbook-textarea:focus {
  outline: none;
  border-color: #ffcc66;
  box-shadow: 0 0 0 3px rgba(255, 204, 102, 0.15);
}

.guestbook-actions {
  display: flex;
  justify-content: flex-end;
}

.guestbook-entries {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guestbook-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 163, 115, 0.5);
  border-radius: 8px;
  padding: 14px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.25);
}

.guestbook-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 14px; /* increased for readability */
  color: #f4d06f;
}

.guestbook-card-message {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
}

.guestbook-feedback {
  font-size: 14px;
  min-height: 20px;
}

.guestbook-feedback.error {
  color: #ff6b6b;
}

.guestbook-feedback.success {
  color: #7cfc00;
}

.guestbook-notice {
  margin-bottom: 18px;
  padding: 12px;
  border: 1px dashed #d4a373;
  border-radius: 6px;
  background-color: rgba(212, 163, 115, 0.08);
  font-size: 14px;
}

/* Diary page styles */
.diary-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.diary-nav {
  min-width: 90px;
  padding: 12px 16px;
  background-color: #3d2314;
  color: #fff8e7 !important;
  border: 2px solid #d4a373;
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
}

.diary-nav:hover {
  background-color: #d4a373;
  color: #14110f !important;
}

.diary-nav.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.diary-indicator {
  font-size: 15px;
  color: #f4d06f;
  text-align: center;
  flex: 1;
}

.diary-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 163, 115, 0.45);
  border-radius: 10px;
  padding: 22px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.22);
}

.diary-title {
  font-size: 30px;
  margin: 0 0 10px;
  color: #f4d06f;
}

.diary-date {
  font-size: 25px;
  margin-bottom: 18px;
  color: #fff8e7;
}

.diary-text {
  white-space: pre-wrap;
  line-height: 1.7;
  color: #fff8e7;
  font-size: 20px;
}

.diary-empty {
  color: #f4d06f;
  font-size: 13px;
  text-align: center;
}
