/* ========================================
   Pachi Rangel - Blog de Escrita
   Estética Typewriter com Verde Claro
   ======================================== */

:root {
  --bg-color: #e8f5e9;
  --bg-light: #f1f8f2;
  --text-color: #2d3436;
  --text-muted: #636e72;
  --accent-color: #4a7c59;
  --link-color: #2d5a3d;
  --link-hover: #1e3d2a;
  --border-color: #a5d6a7;
  --font-title: 'Special Elite', cursive;
  --font-body: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
  min-height: 100vh;
}

/* Layout Principal */
.container {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  padding-right: 3rem;
  border-right: 2px solid var(--border-color);
}

.site-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.site-title a {
  color: var(--text-color);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--accent-color);
}

/* Navegação */
.main-nav ul {
  list-style: none;
}

.main-nav li {
  margin-bottom: 0.5rem;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent-color);
}

/* Conteúdo Principal */
.content {
  flex: 1;
  padding-left: 3rem;
  max-width: 700px;
}

/* Títulos */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: normal;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.2rem;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s ease, text-underline-offset 0.25s ease;
}

a:hover {
  color: #e74c3c;
  text-underline-offset: 4px;
}

/* Parágrafos */
p {
  margin-bottom: 1.5rem;
  text-align: justify;
  color: #000000;
}

/* Posts */
.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-color);
}

.post-title {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.post-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.post-content {
  margin-bottom: 3rem;
}

.post-content p:first-of-type::first-letter {
  font-size: 3rem;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  font-family: var(--font-title);
  color: var(--accent-color);
}

.post-footer {
  padding-top: 2rem;
  border-top: 1px dashed var(--border-color);
}

.back-link {
  font-size: 0.9rem;
}

/* Lista de Posts */
.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border-color);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list a {
  font-family: var(--font-title);
  font-size: 1.2rem;
  text-decoration: none;
}

.post-list a:hover {
  text-decoration: underline;
}

.post-list .date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.25rem;
}

.post-list .post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.post-list .category {
  font-size: 0.75rem;
  color: var(--accent-color);
  text-transform: lowercase;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
}

.post-list .excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Tags */
.post-tags {
  margin-top: 0.5rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.5rem;
  margin-right: 0.5rem;
  border-radius: 3px;
}

/* Índice (Table of Contents) */
.toc {
  background: var(--bg-light);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.toc h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.toc ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  font-size: 0.9rem;
}

/* Poemas - Formatação especial */
.poema {
  font-style: italic;
  line-height: 2;
  margin: 2rem 0;
}

.poema p {
  text-align: left;
  margin-bottom: 0.5rem;
}

.poema .estrofe {
  margin-bottom: 2rem;
}

/* Blockquote */
blockquote {
  border-left: 3px solid var(--accent-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Página Sobre */
.about-content {
  font-size: 1rem;
}

/* Botão */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 2rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--link-hover);
  color: white;
}

/* CTA Box - Newsletter */
.cta-box {
  background: var(--bg-light);
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
  font-family: var(--font-title);
  font-style: italic;
}

.cta-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}

.cta-box a {
  color: var(--accent-color);
  font-weight: bold;
}

.cta-box a:hover {
  color: var(--link-hover);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

/* Responsivo */
@media (min-width: 769px) {
  .site-title {
    font-size: 1.8rem;
  }
  
  .main-nav a {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  
  .container {
    flex-direction: column;
    padding: 2rem 1.5rem;
  }
  
  .sidebar {
    width: 100%;
    padding-right: 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-right: none;
    border-bottom: 2px solid var(--border-color);
  }
  
  .site-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
  
  .main-nav li {
    margin-bottom: 0;
  }
  
  .content {
    padding-left: 0;
  }
  
  .post-title {
    font-size: 1.5rem;
  }
}

/* Animações sutis */
@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 0.2s ease;
  }
  
  .site-title a {
    transition: color 0.3s ease;
  }
}

/* Print */
@media print {
  .sidebar,
  .site-footer,
  .back-link {
    display: none;
  }
  
  .content {
    max-width: 100%;
    padding: 0;
  }
}
