/* ============================================
   COMETA DISTANTE — estilo Y2K / anime girl
   Paleta: rosa chiclete, lavanda, creme, ciano bebê
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&family=Press+Start+2P&family=Trebuchet+MS&display=swap');

:root {
  --rosa-choque: #ff6fa8;
  --rosa-claro: #ffd6e8;
  --lavanda: #e3d6f9;
  --lavanda-escuro: #c8aef0;
  --ciano-bebe: #cdeffb;
  --creme: #fff8ef;
  --marrom-texto: #6b3f52;
  --dourado: #f7d774;
  --branco: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Trebuchet MS', 'Verdana', sans-serif;
  color: var(--marrom-texto);
  background-color: var(--lavanda);
  background-image:
    linear-gradient(45deg, var(--rosa-claro) 25%, transparent 25%),
    linear-gradient(-45deg, var(--rosa-claro) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--rosa-claro) 75%),
    linear-gradient(-45deg, transparent 75%, var(--rosa-claro) 75%);
  background-size: 26px 26px;
  background-position: 0 0, 0 13px, 13px -13px, -13px 0px;
  cursor: url('../imagens/cursor-normal.png') 8 8, auto;
  font-size: 14px;
}

a {
  cursor: url('../imagens/cursor-mao.png') 8 8, pointer;
}

/* ---------- Moldura geral da página ---------- */
.moldura {
  max-width: 900px;
  margin: 18px auto;
  background: var(--creme);
  border: 6px solid var(--branco);
  outline: 3px dashed var(--rosa-choque);
  outline-offset: -12px;
  box-shadow: 0 0 0 3px var(--lavanda-escuro), 8px 8px 0 rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

/* ---------- Topo com banner ---------- */
.banner-topo {
  width: 100%;
  height: 220px;
  background: linear-gradient(180deg, var(--ciano-bebe), var(--rosa-claro));
  background-image: url('../imagens/banner-sasuke-sakura.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 5px solid var(--rosa-choque);
  position: relative;
}

.banner-topo .legenda {
  position: absolute;
  bottom: 6px;
  right: 10px;
  background: rgba(255,255,255,0.8);
  padding: 2px 8px;
  font-size: 10px;
  border-radius: 8px;
  color: var(--marrom-texto);
}

/* ---------- Faixa de botões 88x31 (estilo webring) ---------- */
.faixa-botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding: 8px;
  background: var(--lavanda);
  border-bottom: 3px solid var(--branco);
}

.faixa-botoes img {
  width: 88px;
  height: 31px;
  border: 1px solid var(--marrom-texto);
  image-rendering: pixelated;
}

/* ---------- Corpo: sidebar + conteúdo ---------- */
.corpo {
  display: flex;
  align-items: flex-start;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  padding: 14px 10px;
  background: var(--ciano-bebe);
  border-right: 4px double var(--rosa-choque);
}

.caixa-titulo {
  background: var(--rosa-choque);
  color: var(--branco);
  font-family: 'Mochiy Pop One', cursive;
  font-size: 13px;
  text-align: center;
  padding: 5px;
  border-radius: 14px;
  margin: 14px 0 6px 0;
  box-shadow: 1px 1px 0 var(--marrom-texto);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.sidebar li {
  padding: 3px 0 3px 18px;
  font-size: 12px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><circle cx="5" cy="5" r="4" fill="%23ff6fa8"/></svg>') no-repeat left center;
}

.sidebar li a {
  color: var(--marrom-texto);
  text-decoration: none;
}

.sidebar li a:hover {
  color: var(--rosa-choque);
  text-decoration: underline wavy;
}

.sidebar li a.ativo {
  font-weight: bold;
  color: var(--rosa-choque);
}

/* ---------- Conteúdo principal ---------- */
.conteudo {
  flex: 1;
  padding: 18px 22px;
  min-width: 0;
}

.titulo-blog {
  font-family: 'Mochiy Pop One', cursive;
  font-size: 42px;
  color: var(--rosa-choque);
  text-shadow: 2px 2px 0 var(--lavanda-escuro);
  margin: 0 0 4px 0;
}

.subtitulo-blog {
  font-size: 13px;
  color: var(--marrom-texto);
  margin-bottom: 14px;
}

.marquee-caixa {
  background: var(--dourado);
  border: 2px solid var(--marrom-texto);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-family: 'Press Start 2P', monospace;
  margin-bottom: 14px;
}

.caixa {
  background: var(--branco);
  border: 2px solid var(--lavanda-escuro);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  position: relative;
}

.caixa h2 {
  font-family: 'Mochiy Pop One', cursive;
  font-size: 16px;
  color: var(--rosa-choque);
  margin-top: 0;
  border-bottom: 2px dashed var(--rosa-claro);
  padding-bottom: 6px;
}

.selo-novo {
  display: inline-block;
  background: var(--rosa-choque);
  color: var(--branco);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 6px;
  animation: piscar 1s infinite;
}

@keyframes piscar {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}

/* ---------- Cards de post ---------- */
.post-card {
  display: flex;
  gap: 12px;
  background: var(--branco);
  border: 2px solid var(--lavanda-escuro);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 14px;
}

.post-card .thumb {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 2px solid var(--rosa-claro);
  background: var(--ciano-bebe) center/cover no-repeat;
}

.post-card .info h3 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: var(--rosa-choque);
}

.post-card .info .data {
  font-size: 10px;
  color: var(--lavanda-escuro);
}

.post-card .info p {
  font-size: 12px;
  margin: 6px 0 0 0;
}

.tag {
  display: inline-block;
  font-size: 9px;
  background: var(--lavanda);
  border: 1px solid var(--lavanda-escuro);
  border-radius: 8px;
  padding: 1px 7px;
  margin-right: 4px;
}

/* ---------- Player de música fixo ---------- */
.player-musica {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: var(--branco);
  border: 2px solid var(--rosa-choque);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 999;
  box-shadow: 2px 2px 0 var(--lavanda-escuro);
}

.player-musica button {
  border: none;
  background: var(--rosa-choque);
  color: white;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 12px;
  cursor: url('../imagens/cursor-mao.png') 8 8, pointer;
}

/* ---------- Rodapé ---------- */
.rodape {
  text-align: center;
  font-size: 10px;
  padding: 10px;
  background: var(--rosa-claro);
  border-top: 3px solid var(--branco);
}

/* ---------- Redes sociais ---------- */
.grade-redes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.rede-item {
  background: var(--branco);
  border: 2px solid var(--lavanda-escuro);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--marrom-texto);
}

.rede-item .icone {
  font-size: 26px;
  display: block;
  margin-bottom: 6px;
}

/* ---------- Sparkles do cursor ---------- */
.sparkle {
  position: fixed;
  pointer-events: none;
  width: 8px;
  height: 8px;
  z-index: 9999;
  background: radial-gradient(circle, #fff 0%, var(--dourado) 40%, transparent 70%);
  border-radius: 50%;
  animation: sumir 0.6s forwards;
}

@keyframes sumir {
  0% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.2) translateY(-14px); }
}

/* ---------- Responsivo ---------- */
@media (max-width: 640px) {
  .corpo { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 4px double var(--rosa-choque); }
  .titulo-blog { font-size: 30px; }
  .post-card { flex-direction: column; }
}
