/* ===========================
   Gabriel Cano Blog — Tema Jekyll
   Tema escuro com roxo #660fbd
   =========================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #660fbd;
  --color-primary-hover: #7a1ad4;
  --color-bg: #0b1120;
  --color-surface: #0f172a;
  --color-surface-2: #1e293b;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-border: #1e293b;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 860px;
  --radius: 8px;

  --rating: 0; /* Nota de 0 a 10 */
  --star-size: 40px;
  --star-color: #334155;
  --star-background: #ffbc00;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

a { color: var(--color-text-muted); text-decoration: none; }
a:hover { color: var(--color-text); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header ===== */
.site-header {
  background: rgba(26, 26, 31, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo:hover { text-decoration: none; }

.header-logo-icon {
  background: #660fbd;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
  line-height: 32px;
}

.header-logo-text {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 32px;
  white-space: nowrap;
}

/* Nav */
.header-nav { display: flex; align-items: center; }

.header-nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
}

.header-nav-list a {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  line-height: 20px;
  transition: color 0.2s;
}

.header-nav-list a:hover,
.header-nav-list a.active {
  color: #660fbd;
  text-decoration: none;
}

/* Right controls */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-search-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.header-search-btn:hover { background: rgba(255, 255, 255, 0.08); }

.header-subscribe-btn {
  background: #660fbd;
  color: white;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  line-height: 20px;
  white-space: nowrap;
  transition: background 0.2s;
}

.header-subscribe-btn:hover {
  background: #7a1ad4;
  color: white;
  text-decoration: none;
}

.header-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ===== Main ===== */
.site-main { padding: 2.5rem 0 4rem; }

/* ===== Section Title ===== */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-primary);
  font-family: 'Space Grotesk', sans-serif;
}

/* ===== Post List ===== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.post-card {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2.5rem;
}

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

.post-thumb {
  display: block;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-thumb:hover img { transform: scale(1.02); }

.post-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.post-card-title a { color: var(--color-text); }
.post-card-title a:hover { color: var(--color-primary); text-decoration: none; }

.post-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.post-cat {
  background: var(--color-primary);
  color: #fff;
  padding: 0.1rem 0.5rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
}

.post-cat:hover { background: var(--color-primary-hover); color: #fff; text-decoration: none; }

.post-excerpt {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 1px;
  font-family: 'Space Grotesk', sans-serif;
}

.read-more:hover { text-decoration: none; color: var(--color-primary-hover); border-color: var(--color-primary-hover); }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.pagination a {
  font-weight: 600;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}

.pagination a:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ===== Single Post ===== */
.post-header { margin-bottom: 2.5rem; }

.post-featured-image {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.post-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.post-content {
  font-size: 1rem;
  line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.2rem; }

.post-content p { margin-bottom: 1.25rem; }

.post-content ul,
.post-content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.post-content li { margin-bottom: 0.4rem; }

.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content code {
  background: var(--color-surface-2);
  color: #cbd5e1;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.88em;
  font-family: "Fira Code", "Courier New", monospace;
}

.post-content pre {
  background: #1a1a1a;
  color: #e8e8e8;
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
}

.post-content img {
  border-radius: var(--radius);
  margin: 1.5rem auto;
}

.post-content a { color: var(--color-primary); text-decoration: underline; }

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-family: 'Space Grotesk', sans-serif;
}

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

.tag {
  background: var(--color-border);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===== Page ===== */
.page-header { margin-bottom: 2rem; }
.page-title { font-size: 2rem; font-weight: 800; }
.page-content { font-size: 1rem; line-height: 1.8; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a { color: var(--color-primary); }
.site-footer a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  html { font-size: 16px; }

  .header-nav { display: none; }
  .header-subscribe-btn { display: none; }

  .header-nav-toggle {
    display: flex;
  }

  .header-nav.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 31, 0.97);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .header-nav.open .header-nav-list {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .header-nav.open .header-nav-list a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 15px;
  }

  .header-nav.open .header-nav-list a:hover,
  .header-nav.open .header-nav-list a.active {
    background: rgba(102, 15, 189, 0.15);
  }

  .post-title { font-size: 1.5rem; }
  .post-card-title { font-size: 1.2rem; }
}

/* ===========================
   Post Layout — Figma 2026
   =========================== */

/* Full-width main override */
.site-main--full {
  padding: 0;
}

/* ===== Post Hero ===== */
.post-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #0f0f12;
}

.post-hero-bg {
  position: absolute;
  inset: 0;
}

.post-hero-bg img {
  width: 116%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  margin-left: -8%;
  max-width: none;
  display: block;
}

.post-hero-bg--no-image {
  background: linear-gradient(135deg, #1a0a30 0%, #0f0f12 100%);
}

.post-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0f0f12 0%, rgba(15, 15, 18, 0.4) 50%, rgba(15, 15, 18, 0) 100%);
}

.post-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 48px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-hero-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.post-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: white;
  text-decoration: none;
  line-height: 16px;
  white-space: nowrap;
}

.post-hero-badge--primary {
  background: #660fbd;
}

.post-hero-badge--primary:hover {
  background: #7a1ad4;
  color: white;
  text-decoration: none;
}

.post-hero-badge--overlay {
  background: rgba(255, 255, 255, 0.1);
}

.post-hero-title {
  font-size: 60px;
  font-weight: 700;
  color: white;
  letter-spacing: -1.2px;
  line-height: 1.1;
  max-width: 896px;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  color: #9ca3af;
  font-size: 14px;
  font-family: 'Space Grotesk', sans-serif;
  flex-wrap: wrap;
  gap: 0;
}

.post-hero-dot {
  margin: 0 12px;
}

/* ===== Post Content Layout ===== */
.post-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

/* ===== Main Article ===== */
.post-main {
  min-width: 0;
}

.post-layout .post-content {
  font-size: 18px;
  line-height: 1.75;
  color: #e2e8f0;
}

.post-layout .post-content > p:first-of-type::first-letter {
  font-size: 3.5em;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin-right: 8px;
  margin-top: 6px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
}

.post-layout .post-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.48px;
  line-height: 1.35;
  margin: 2.5rem 0 1rem;
}

.post-layout .post-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 2rem 0 0.75rem;
}

.post-layout .post-content p {
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.post-layout .post-content blockquote {
  border-left: 4px solid #660fbd;
  padding: 8px 24px 8px 28px;
  margin: 2rem 0;
  background: none;
  color: white;
  font-size: 24px;
  line-height: 1.4;
  border-radius: 0;
}

.post-layout .post-content blockquote p {
  color: white;
  margin: 0;
}

.post-layout .post-content ul,
.post-layout .post-content ol {
  margin: 0 0 1.5rem 1.5rem;
  color: #e2e8f0;
}

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

.post-layout .post-content a {
  color: #660fbd;
  text-decoration: underline;
}

.post-layout .post-content a:hover {
  color: #7a1ad4;
}

.post-layout .post-content img {
  border-radius: 8px;
  margin: 1.5rem auto;
}

.post-layout .post-content code {
  background: #1a1a1f;
  color: #cbd5e1;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.88em;
}

.post-layout .post-content pre {
  background: #1a1a1f;
  color: #e8e8e8;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-layout .post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
}

.post-layout .post-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* Tags Section */
.post-tags-section {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-tags-label {
  font-size: 14px;
  color: #6b7280;
  font-family: 'Space Grotesk', sans-serif;
  margin-right: 4px;
}

.post-tag-pill {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  transition: background 0.2s;
}

.post-tag-pill:hover {
  background: rgba(102, 15, 189, 0.3);
  color: white;
  text-decoration: none;
}

/* ===== Post Sidebar ===== */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: sticky;
  top: 80px;
  min-width: 0;
}

/* Newsletter Widget */
.post-sidebar-newsletter {
  background: #660fbd;
  border-radius: 8px;
  padding: 24px 24px 40px;
  position: relative;
  overflow: hidden;
}

.post-sidebar-newsletter-deco {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: #8b2cf5;
  filter: blur(20px);
  opacity: 0.5;
  pointer-events: none;
}

.post-sidebar-newsletter h3 {
  font-size: 24px;
  font-weight: 700;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.48px;
  line-height: 1.35;
  margin: 0 0 8px;
}

.post-sidebar-newsletter p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 0;
}

.post-sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
}

.post-sidebar-newsletter-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 17px;
  color: white;
  font-size: 16px;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.post-sidebar-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.post-sidebar-newsletter-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.post-sidebar-newsletter-btn {
  background: white;
  color: #660fbd;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  text-align: center;
  width: 100%;
  line-height: 20px;
  transition: opacity 0.2s;
}

.post-sidebar-newsletter-btn:hover {
  opacity: 0.9;
}

/* Sidebar Sections */
.post-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-sidebar-heading {
  font-size: 18px;
  font-weight: 700;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.36px;
  padding-bottom: 5px;
  border-bottom: 1px solid #660fbd;
  margin: 0;
  display: inline-block;
}

/* Related Posts */
.post-sidebar-related {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-related-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
}

.post-related-item:hover {
  text-decoration: none;
}

.post-related-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.post-related-thumb--placeholder {
  background: #1e293b;
}

.post-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-related-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.post-related-title {
  font-size: 16px;
  font-weight: 500;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.32px;
  line-height: 1.4;
  margin: 0;
}

.post-related-item:hover .post-related-title {
  color: #660fbd;
}

.post-related-date {
  font-size: 12px;
  color: #6b7280;
  font-family: 'Space Grotesk', sans-serif;
}

/* Categories */
.post-sidebar-cats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-sidebar-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-sidebar-cat-link {
  font-size: 16px;
  color: #9ca3af;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  line-height: 24px;
  transition: color 0.2s;
}

.post-sidebar-cat-link:hover {
  color: white;
  text-decoration: none;
}

.post-sidebar-cat-count {
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ===== Post Responsive ===== */
@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr 300px;
    gap: 32px;
  }

  .post-hero-title {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .post-layout {
    grid-template-columns: 1fr;
    padding: 32px 16px;
  }

  .post-hero-title {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .post-hero {
    min-height: 70vh;
  }

  .post-sidebar {
    position: static;
  }

  .post-layout .post-content blockquote {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .post-hero-title {
    font-size: 26px;
  }

  .post-hero-meta {
    font-size: 12px;
  }
}

/* ===== Review ===== */
.stars-outer {
  display: inline-block;
  position: relative;
  font-family: FontAwesome;
  font-size: var(--star-size);
  letter-spacing: 5px;
}

/* As estrelas cinzas (vazias) */
.stars-outer::before {
  content: "\2605 \2605 \2605 \2605 \2605";
  color: var(--star-color);
}

/* As estrelas amarelas (preenchidas) */
.stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  width: 0; /* Será controlado pelo JS */
  color: var(--star-background);
}

.stars-inner::before {
  content: "\2605 \2605 \2605 \2605 \2605";
}

 /* ===== Footer ===== */
 .site-footer {
  background: #1a1a1f;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 49px 0 0;
  font-family: 'Space Grotesk', var(--font-body);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 23px;
}

.footer-logo:hover { text-decoration: none; }

.footer-logo-icon {
  background: #660fbd;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
  line-height: 1;
}

.footer-logo-text {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1;
}

.logo-white { color: white; }
.logo-purple { color: #660fbd; }

.footer-desc {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.625;
  margin: 0;
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  font-family: 'Space Grotesk', sans-serif;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a {
  color: #9ca3af;
  font-size: 14px;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  line-height: 1.4;
}

.footer-links-list a:hover {
  color: white;
  text-decoration: none;
}

.footer-social-links {
  display: flex;
  gap: 16px;
}

.footer-social-btn {
  background: rgba(255, 255, 255, 0.05);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}

.footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 33px 0 48px;
}

.footer-copyright {
  color: #4b5563;
  font-size: 12px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  line-height: 1;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===========================
   Container Wide (Home)
   =========================== */
.container--wide {
  max-width: 1280px;
}

/* ===========================
   Home Layout — 2 colunas
   =========================== */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.home-sep {
  border: none;
  border-top: 1px solid var(--color-border);
  width: 100%;
}

/* ===== Featured Post ===== */
.featured-post {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.featured-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.featured-thumb:hover img { transform: scale(1.03); }

.featured-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  font-family: 'Space Grotesk', sans-serif;
}

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

.featured-title a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.featured-excerpt {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.875rem;
  color: var(--color-text-dim);
  font-family: 'Space Grotesk', sans-serif;
}

.meta-sep {
  margin: 0 12px;
}

/* ===== Post Badge ===== */
.post-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  background: var(--color-primary);
  color: #fff;
  z-index: 1;
}

/* Category-specific badge colors */
.post-badge--tecnologia,
.post-badge--tech { background: #660fbd; color: #fff; }
.post-badge--tips-and-tricks { background: #0891b2; color: #fff; }
.post-badge--newsletter { background: #059669; color: #fff; }
.post-badge--resenha,
.post-badge--review,
.post-badge--cinema,
.post-badge--movie-review { background: #fbbf24; color: #0f172a; }
.post-badge--personal,
.post-badge--pessoal { background: #334155; color: #f1f5f9; }

/* ===== Posts Grid (2-up) ===== */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.post-card-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-card-thumb:hover img { transform: scale(1.04); }

.post-card-grid-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  font-family: 'Space Grotesk', sans-serif;
}

.post-card-grid-title a {
  color: var(--color-text);
  text-decoration: none;
}

.post-card-grid-title a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.post-card-grid-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Extra Posts List ===== */
.posts-extra-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.post-list-row:first-child { border-top: none; }
.post-list-row:last-child { border-bottom: none; }

.post-list-row-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.post-list-row-title {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.post-list-row-title a {
  color: var(--color-text);
  text-decoration: none;
}

.post-list-row-title a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.post-list-row-date {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  font-family: 'Space Grotesk', sans-serif;
}

.post-list-row-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
}

.post-list-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Load More ===== */
.load-more-wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 16px;
}

.load-more-btn {
  display: inline-block;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.load-more-btn:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ===========================
   Sidebar
   =========================== */
.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-label {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-label--pulse {
  color: var(--color-text-dim);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Search */
.search-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--color-surface-2);
  border: none;
  border-radius: var(--radius);
  padding: 12px 44px 12px 16px;
  color: var(--color-text);
  font-size: 0.875rem;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  transition: box-shadow 0.2s;
}

.search-input::placeholder { color: #6b7280; }

.search-input:focus {
  box-shadow: 0 0 0 2px var(--color-primary);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Author Bio */
.author-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  object-fit: cover;
  flex-shrink: 0;
}

.author-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: 'Space Grotesk', sans-serif;
}

.author-role {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-family: 'Space Grotesk', sans-serif;
}

.author-bio-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.author-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--color-surface-2);
  transition: background 0.2s;
  text-decoration: none;
}

.social-icon-link:hover {
  background: rgba(102, 15, 189, 0.2);
  text-decoration: none;
}

/* Terminal Updates */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.update-item {
  border-left: 2px solid var(--color-surface-2);
  padding: 4px 0 4px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.update-item--active {
  border-left-color: var(--color-primary);
}

.update-text {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.55;
  font-family: 'Space Grotesk', sans-serif;
}

.update-time {
  font-size: 0.65rem;
  color: var(--color-text-dim);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
}

.update-text a,
.update-time a {
  text-decoration: none;
  color: inherit;
}

.update-text a:hover,
.update-time a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.updates-list--loading {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  font-size: 0.875rem;
}

.updates-list--error {
  min-height: 60px;
  color: var(--color-text-dim);
  font-size: 0.875rem;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  padding: 4px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.tag-pill:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ===========================
   Home Responsive
   =========================== */
@media (max-width: 1024px) {
  .home-grid {
    grid-template-columns: 1fr 280px;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .home-sidebar {
    position: static;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .featured-title {
    font-size: 1.5rem;
  }
}

