/* --- VARIÁVEIS DO SEU TEMA --- */
:root {
  --wood-dark: #2b1d0e;
  --wood-light: #5c4033;
  --paper-bg: #e8dac6;       
  --paper-bright: #fffdf5;   
  --sidebar-bg: #dccbb3;     
  --ink: #1a0f0a;            
  --blood-red: #8a0b0b;
  --gold: #d4af37;
  --shadow: rgba(0,0,0,0.5);
}

/* RESET BÁSICO */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--wood-dark);
  color: var(--ink);
  font-family: 'Merriweather', serif;
  /* Textura de madeira de fundo */
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 20px);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* CONTAINER PRINCIPAL (A MESA/MURAL) */
.main-container {
  display: flex;
  width: 100%;
  max-width: 1100px;
  background-color: var(--wood-light);
  border: 8px solid var(--wood-dark);
  box-shadow: 0 0 50px black;
  border-radius: 10px;
  overflow: hidden;
  flex-wrap: wrap; /* Para mobile */
}

/* --- SIDEBAR (PERFIL) --- */
.sidebar {
  flex: 1;
  min-width: 300px;
  background-color: var(--sidebar-bg);
  background-image: url('https://www.transparenttextures.com/patterns/aged-paper.png');
  padding: 40px 20px;
  border-right: 4px dashed var(--wood-dark);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Corda decorativa */
.rope-decoration {
  position: absolute; top: -10px; left: 20px;
  width: 10px; height: 150px;
  background: repeating-linear-gradient(45deg, #8b5a2b, #8b5a2b 5px, #5c3a1e 5px, #5c3a1e 10px);
  box-shadow: 2px 2px 5px var(--shadow);
}

/* Avatar */
.avatar-frame {
  width: 150px; height: 150px;
  background: var(--paper-bright);
  padding: 5px;
  box-shadow: 5px 5px 15px var(--shadow);
  transform: rotate(-3deg);
  margin-bottom: 20px;
  position: relative;
}
.avatar-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.4) contrast(1.1);
}
.pin {
  position: absolute; top: -10px; left: 50%;
  width: 12px; height: 12px; background: #a00;
  border-radius: 50%; box-shadow: 1px 1px 2px black;
}

/* Textos do Perfil */
.badge {
  font-family: 'Courier Prime', monospace;
  background: var(--ink); color: var(--gold);
  padding: 2px 8px; font-size: 0.8rem; letter-spacing: 2px;
}
h1 {
  font-family: 'Rye', serif;
  font-size: 2.5rem; color: var(--ink);
  margin: 10px 0 0 0;
  text-transform: uppercase;
}
.handle {
  font-family: 'Courier Prime', monospace;
  opacity: 0.7; margin-bottom: 20px;
}

/* Caderneta de Bio */
.notebook {
  background: var(--paper-bright);
  width: 100%;
  padding: 20px;
  border: 1px solid #aaa;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  text-align: left;
  font-size: 0.9rem;
  /* Linhas de caderno */
  background-image: repeating-linear-gradient(transparent, transparent 1.5rem, rgba(0,0,0,0.1) 1.5rem, rgba(0,0,0,0.1) calc(1.5rem + 1px));
  line-height: 1.55rem;
  margin-bottom: 20px;
}
.dashed-line { border: 0; border-top: 2px dashed var(--ink); opacity: 0.3; margin: 10px 0; }
.info-list { list-style: none; padding: 0; }

/* Botão */
.action-btn {
  display: inline-block;
  background: var(--blood-red); color: #fff;
  font-family: 'Rye', serif; padding: 10px 20px;
  text-decoration: none; border-radius: 4px;
  border: 2px solid var(--ink);
  transition: 0.3s;
}
.action-btn:hover { background: var(--ink); color: #fff; transform: scale(1.05); }


/* --- ÁREA PRINCIPAL (LINKS) --- */
.board-area {
  flex: 2;
  padding: 40px;
  background-image: radial-gradient(rgba(0,0,0,0.2) 15%, transparent 16%);
  background-size: 30px 30px; /* Efeito de textura */
}

.wood-title {
  font-family: 'Rye', serif; font-size: 3rem;
  text-align: center; color: var(--paper-bg);
  text-shadow: 3px 3px 0px black;
  margin-bottom: 5px;
}
.subtitle {
  text-align: center; font-family: 'Courier Prime', monospace;
  color: var(--paper-bg); opacity: 0.8; margin-bottom: 40px;
}

/* Grid dos Posters */
.grid-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.poster-link { text-decoration: none; }

/* O Cartaz Procurado */
.wanted-poster {
  background: var(--paper-bg);
  padding: 15px;
  position: relative;
  box-shadow: 5px 10px 20px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
  text-align: center;
  color: var(--ink);
  border: 1px solid #ccc;
}
.wanted-poster:hover {
  transform: scale(1.05) rotate(1deg);
  z-index: 10;
  box-shadow: 10px 15px 30px rgba(0,0,0,0.8);
}

.nail {
  position: absolute; width: 8px; height: 8px;
  background: #222; border-radius: 50%; left: 50%; top: 5px;
  box-shadow: 1px 1px 2px black;
}

.poster-img {
  width: 100%; height: 160px;
  background: #000;
  margin-bottom: 15px;
  border: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.poster-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.8) contrast(1.2);
}
.poster-label {
  position: absolute; bottom: 5px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink); color: #fff;
  font-family: 'Rye', serif; font-size: 0.8rem;
  padding: 2px 8px;
}

.wanted-poster h3 {
  font-family: 'Rye', serif; font-size: 1.5rem;
  margin-bottom: 5px; text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
}
.poster-desc {
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem; margin-top: 10px;
  line-height: 1.2;
}

.footer {
  text-align: center; margin-top: 50px;
  color: var(--paper-bg); opacity: 0.4;
  font-size: 0.8rem;
}
.footer a { color: inherit; }

/* MOBILE */
@media (max-width: 768px) {
  .main-container { flex-direction: column; }
  .sidebar { border-right: none; border-bottom: 4px dashed var(--wood-dark); }
  .wood-title { font-size: 2rem; }
}