/* =========================
   BODY
========================= */
body {
  margin: 0;
  background: #02050d;
  overflow-x: hidden;
    font-family: 'Inter', sans-serif;
  color: #ddd;
}
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
}
:root {
  --lava-orange: #ff6a2a;
  --lava-glow: #ff944d;
  --wine-red: #7a1c1c;
  --deep-blue: #02050d;
  --dark-blue: #0a1220;
}
.post-title {
  font-size: 42px;
  font-weight: 700;

  background: linear-gradient(
    90deg,
    var(--lava-orange),
    var(--wine-red)
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  margin-bottom: 20px;
}
.post-subtitle {
  font-size: 20px;
  color: rgba(255, 140, 80, 0.8);
}
.post-content p {
  color: rgba(220, 220, 230, 0.85);
  font-size: 16px;
  line-height: 1.8;
}
.post-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.post-meta .tags {
  color: var(--lava-orange);
}

.post-meta .date {
  color: rgba(255,255,255,0.3);
}
a {
  color: var(--lava-orange);
  text-decoration: none;
}

a:hover {
  color: var(--lava-glow);
}
.post-paper {
  background: linear-gradient(
    160deg,
    rgba(20, 10, 5, 0.6),
    rgba(10, 5, 2, 0.4)
  );
}
/* =========================
   CANVAS
========================= */
#hex-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

document.addEventListener("DOMContentLoaded", () => {
  initMenu();
  initScrollEffects();
  initFireEffect(); // 👈 ISTO É O QUE FALTA / PARTIU
});


.logo-wrapper.flicker::before {
  opacity: 1;
  filter: blur(50px);
}
/* =========================
   HEADER
========================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 220px;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 10;
}


/* =========================
   LOGO
========================= */
.logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wrapper::before {
  content: "";
  position: absolute;
  inset: -40px;

  background: radial-gradient(
    circle at 50% 60%,
    rgba(255,140,60,0.25),
    rgba(255,80,0,0.1),
    transparent
  );

  filter: blur(25px);
  opacity: 0.2;
  z-index: 0;
}

.logo {
  height: 120px;
  position: relative;
  z-index: 2;

  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0,0,0,1) calc(100% - 3px),
    rgba(0,0,0,0)
  );

  mask-image: radial-gradient(
    ellipse at center,
    rgba(0,0,0,1) calc(100% - 3px),
    rgba(0,0,0,0)
  );

  animation: breathe 12s ease-in-out infinite;
}

@keyframes breathe {
  0%,100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

.logo-wrapper.flicker::before {
  opacity: 0.7;
  filter: blur(35px);
}

.logo-wrapper::after {
  content: "";
  position: absolute;
  inset: -60px;

  background: radial-gradient(
    circle at center,
    rgba(255,120,40,0.15),
    transparent 70%
  );

  filter: blur(25px);
  opacity: 0.5;

  animation: heatDistort 6s ease-in-out infinite;

  pointer-events: none;
}

@keyframes heatDistort {
  0%,100% {
    transform: scale(1) translate(0,0);
  }
  50% {
    transform: scale(1.03) translate(-2px, -3px);
  }
}
/* =========================
   🔥 BURN OVERLAY
========================= */
.burn-overlay {
  position: absolute;
  width: 150%;
  height: 150%;

  background: radial-gradient(
    circle at 50% 65%,
    rgba(255,120,40,0.2),
    rgba(0,0,0,0.8) 70%
  );

  filter: blur(20px);
  opacity: 0.3;
  mix-blend-mode: overlay;

  z-index: 1;
}

.logo-wrapper::after {
  content: "";
  position: absolute;
  inset: -80px;

  background: radial-gradient(
    circle,
    rgba(255,180,80,0.6),
    transparent 70%
  );

  opacity: 0;
  filter: blur(30px);

  transition: opacity 0.2s;
  pointer-events: none;
}

.logo-wrapper.flicker::after {
  opacity: 1;
}
/* =========================
   🌫️ SMOKE
========================= */
.smoke-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04), transparent 70%);

  filter: blur(50px);
  opacity: 0.35;

  animation: smokeFlow 80s linear infinite;
}

@keyframes smokeFlow {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(-2%, -1%) scale(1.05); }
  100% { transform: translate(0,0) scale(1); }
}


/* =========================
   📜 PAPER (MAIN)
========================= */
/* =========================
   📜 PAPER RASGADO REAL
========================= */
.post-paper {
  max-width: 760px;
  margin: 200px auto;
  padding: 60px;

  position: relative;
  z-index: 5;

  background: rgba(255, 240, 200, 0.05);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  -webkit-mask-image: url('/wp-content/uploads/paper-mask.svg');
  mask-image: url('/wp-content/uploads/paper-mask.svg');

  -webkit-mask-size: cover;
  mask-size: cover;

  animation: paperDrift 40s ease-in-out infinite;

  box-shadow:
    0 30px 100px rgba(0,0,0,0.8),
    inset 0 0 40px rgba(255,180,100,0.05);
}

@keyframes paperDrift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(2px,-2px) scale(1.01); }
  100% { transform: translate(0,0) scale(1); }
}

/* =========================
   🔥 BURNT EDGES
========================= */
.paper-burn {
  position: absolute;
  inset: -30px;
  z-index: -1;

  background:
    radial-gradient(circle at 20% 20%, rgba(255,120,40,0.35), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(255,80,20,0.3), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(255,100,40,0.35), transparent 60%);

  filter: blur(30px);
  opacity: 0.6;

  mix-blend-mode: overlay;

  animation: burnAlive 12s ease-in-out infinite;
}

@keyframes burnAlive {
  0%,100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* =========================
   🧻 PAPER TEXTURE
========================= */
.post-paper::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.015),
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 3px
    );

  opacity: 0.25;
  pointer-events: none;
}


/* =========================
   ✍️ CONTENT
========================= */
.post-content {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.85);
}


/* =========================
   TYPOGRAPHY
========================= */
.post-content h1 {
  font-size: 42px;
  color: #fff;
}

.post-content p {
  line-height: 1.8;
}

.post-content small {
  color: rgba(255,255,255,0.4);
}


/* =========================
   IMAGE
========================= */
.post-image img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 30px;

  mask-image: radial-gradient(circle, black 80%, transparent 100%);
}


/* =========================
   COMMENTS
========================= */
.post-comments {
  margin-top: 60px;
}

.post-paper::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at 50% 50%,
    rgba(255,120,40,0.05),
    transparent 70%
  );

  mix-blend-mode: overlay;
  filter: blur(20px);

  animation: heatWave 20s ease-in-out infinite;
}

@keyframes heatWave {
  0%   { transform: scale(1) translate(0,0); }
  50%  { transform: scale(1.02) translate(-1%, -1%); }
  100% { transform: scale(1) translate(0,0); }
}
/* =========================
   🔥 LAVA OVERLAY
========================= */
.lava-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;

  pointer-events: none;

  background: url('https://t0rrad0r.com/wp-content/uploads/2026/04/lava-texture.png') center/cover no-repeat;

  mix-blend-mode: overlay;
  opacity: 0.45;

  -webkit-mask-image: url('https://t0rrad0r.com/wp-content/uploads/2026/04/lava-mask.png');
  mask-image: url('https://t0rrad0r.com/wp-content/uploads/2026/04/lava-mask.png');

  -webkit-mask-size: cover;
  mask-size: cover;

  filter: contrast(1.1) brightness(0.9);
}