/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --left-pad: 96px;
  --top-pad: 34px;
  --title-size: 44px;

  /* ✅ sidebar */
  --sidebar-w: 220px;
  --sidebar-bg: #262626;
  --sidebar-text: #ffffff;
}

/* Fundo */
html, body{
  height: 100%;
  background: #000;
}

body{
  font-family: "Times New Roman", serif;
  color: #fff;
  min-height: 100vh;
}

/* Logo */
.logo-link{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
}

.logo-img{
  width: 120px;
  image-rendering: pixelated;
  transition: transform 0.2s ease;
}
.logo-link:hover .logo-img{ transform: scale(1.1); }

/* =========================
   ✅ Sidebar meses
   ========================= */
.months-sidebar{
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 2px solid rgba(0,0,0,0.25);
  z-index: 40;

  padding: 22px 14px;
  overflow-y: auto;
}

.months-nav{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.month-link{
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  line-height: 1.4;
  color: var(--sidebar-text);
  text-decoration: none;

  padding: 10px 10px;
  border-radius: 10px;

  transition: transform 0.15s ease, background 0.15s ease;
}

.month-link:hover{
  background: rgba(0,0,0,0.08);
  transform: translateX(3px);
}

.month-link.active{
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(0,0,0,0.18);
}

/* =========================
   Título principal (pixel)
   ========================= */
.topbar{
  padding-top: var(--top-pad);

  /* ✅ empurra tudo pra direita por causa da sidebar */
  padding-left: calc(var(--left-pad) + var(--sidebar-w));
}

.page-title{
  font-family: "Press Start 2P", monospace;
  font-size: var(--title-size);
  text-shadow: 0 3px 0 rgba(0,0,0,0.7);
}

/* =========================
   Container do diário
   ========================= */
.diary-container{
  /* ✅ empurra o conteúdo por causa da sidebar */
  padding-left: calc(var(--left-pad) + var(--sidebar-w));
  padding-right: 60px;
  padding-top: 60px;
  padding-bottom: 120px;
  max-width: 1100px;
}

/* Cada entrada */
.diary-entry{
  margin-bottom: 90px;
}

/* Cabeçalho do post */
.entry-header{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* ✅ troca de lugar: título na esquerda, data na direita */
.entry-title{
  font-size: 26px;
  text-align: left;
}

.entry-date{
  font-size: 18px;
  opacity: 0.8;
  text-align: right;
}

/* Linha branca */
.entry-divider{
  margin: 18px 0 28px 0;
  height: 1px;
  background: #fff;
  opacity: 0.5;
}

/* Texto do diário */
.entry-content p{
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 18px;
  text-indent: 40px;  /* recuo de parágrafo */
}

/* Imagens e vídeos */
.entry-media{
  margin: 30px 0;
  text-align: center;
}

.entry-media img,
.entry-media video{
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.entry-media video{
  width: 100%;
}

/* Responsivo (sem bagunçar desktop) */
@media (max-width: 980px){
  :root{
    --sidebar-w: 190px;
    --left-pad: 48px;
    --title-size: 38px;
  }
  .month-link{ font-size: 10px; }
}

@media (max-width: 760px){
  :root{
    --sidebar-w: 160px;
    --left-pad: 28px;
    --title-size: 32px;
  }
  .entry-title{ font-size: 22px; }
  .entry-date{ font-size: 16px; }
}

.text-divider-line{
  display: flex;
  align-items: center;
  text-align: center;
  margin: 50px 0;
}

.text-divider-line::before,
.text-divider-line::after{
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

.text-divider-line span{
  margin: 0 20px;
  font-size: 18px;
  opacity: 0.8;
}

.entry-content{
  margin-top: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.5);
}

.youtube-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  margin: 30px 0;
}

.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.pdf-wrapper {
  width: 100%;
}

.pdf-frame {
  display: block;
  width: 100%;
  height: 70vh;
  border: none;
  border-radius: 12px;
  background: #111;
}

.pdf-title {
  font-size: 18px;
  margin-bottom: 14px;
  text-align: left;
}

.pdf-open-link {
  display: inline-block;
  margin-top: 14px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pdf-open-link:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.site-wrapper {
  width: 100%;
}

.site-title {
  font-size: 18px;
  margin-bottom: 14px;
  text-align: left;
}

.site-frame {
  display: block;
  width: 100%;
  height: 70vh;
  border: none;
  border-radius: 12px;
  background: #111;
}

.site-open-link {
  display: inline-block;
  margin-top: 14px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-open-link:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}