/* ─────────────────────────────────────────────────────────
   Lucas Domires — Blog (Work In Progress Theme)
───────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Vintage Light Palette */
  --bg:       #F5F2ED;
  --bg-1:     #ECEAE4;
  --bg-2:     #FFFFFF;
  --text:     #0A0A08;
  --text-2:   #3A3835;
  --text-3:   #8C8880;
  --gold:     #D9230F; /* Industrial Red */
  --gold-d:   #8C0000;
  --line:     rgba(10,10,8,0.25);
  --line-2:   rgba(10,10,8,0.40);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Mono', 'Courier New', Courier, monospace;
}

/* Header overrides for the blog */
#header.scrolled {
  background: rgba(245,242,237,0.92);
  border-bottom: 2px dashed var(--line-2);
}

.hdr-brand strong, .hdr-brand em, .hdr-nav a {
  color: var(--text);
}

.hdr-nav a.active-link::after, .hdr-nav a:hover::after {
  background: var(--gold);
}

/* Film grain effect replaced by paper/draft texture */
#filmGrain {
  opacity: 0.15;
  mix-blend-mode: multiply;
  background-size: 50px;
}

body::after {
  display: none; /* No cinematic vignette */
}

/* ─────────────────────────────────────────────────────────
   Blog Layout (Draft / Blueprint Style)
───────────────────────────────────────────────────────── */

.blog-main {
  max-width: 1100px;
  margin: 140px auto 100px;
  padding: 0 var(--pad);
}

/* The wrapper simulating a loose piece of paper or unformatted block */
.blog-draft-container {
  border: 1px dashed var(--line-2);
  padding: 3rem;
  background: var(--bg-1);
  position: relative;
}

.blog-draft-container::before {
  content: "W.I.P. MODULE // DO NOT DISTRIBUTE";
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--bg);
  padding: 0 10px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.blog-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.blog-title {
  font-family: 'Bebas Neue', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.blog-meta {
  font-size: 0.75rem;
  color: var(--text-2);
  display: flex;
  gap: 1rem;
}

/* Typography styles inside articles */
.blog-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-2);
  max-width: 65ch;
}

.blog-content h2, .blog-content h3 {
  font-family: 'Syne', sans-serif;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}

.blog-content h2 { font-size: 1.6rem; }
.blog-content h3 { font-size: 1.2rem; }

.blog-content img {
  width: 100%;
  border: 4px solid var(--bg-2);
  box-shadow: 4px 4px 0 var(--line-2);
  margin: 2rem 0;
  transition: transform 0.2s;
}

.blog-content img:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--gold);
}

.blog-content blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  font-style: italic;
  margin: 2rem 0;
  color: var(--text);
}

.blog-content ul {
  list-style: square;
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-2);
}

.blog-content li {
  margin-bottom: 0.5rem;
}

/* Image grid for references */
.blog-references {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 3rem 0;
}

.blog-references img {
  margin: 0;
  border: 1px dashed var(--line-2);
  box-shadow: none;
}

@media (max-width: 768px) {
  .blog-draft-container {
    padding: 1.5rem;
  }
}

/* ─────────────────────────────────────────────────────────
   Layout de 2 Colunas e Sidebar
───────────────────────────────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  border: 1px dashed var(--line-2);
  padding: 1.5rem;
  background: var(--bg-1);
}

.widget-title {
  font-family: 'Syne', sans-serif;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

/* Componentes em rascunho */
.search-box {
  display: flex;
  gap: 0.5rem;
}

.wip-input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line-2);
  border-bottom: 2px solid var(--text);
  padding: 0.5rem;
  font-family: 'Space Mono', monospace;
  color: var(--text);
  font-size: 0.8rem;
  outline: none;
  min-width: 0;
}

.wip-btn {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 0.5rem 1rem;
  font-family: 'Space Mono', monospace;
  cursor: pointer;
}

.wip-btn:hover {
  background: var(--gold);
}

.wip-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wip-list li {
  margin-bottom: 0.5rem;
}

.wip-list a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
}

.wip-list a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.wip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wip-tag {
  background: var(--line);
  color: var(--text);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--text);
  font-family: 'Space Mono', monospace;
  cursor: pointer;
}

.wip-tag:hover {
  background: var(--gold);
  color: var(--bg-2);
  border-color: var(--gold);
}
