/* Layout blog estilo WordPress */

.blog-wrap {
  padding: 2rem 0 3.5rem;
}

.blog-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.35rem;
}

.blog-header p {
  margin: 0;
  color: var(--muted);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  align-items: start;
}

.blog-main {
  min-width: 0;
}

/* Card de post (listagem) */
.post-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: border-color 0.2s;
}

.post-card:hover {
  border-color: var(--border-amber);
}

.post-card:last-child {
  margin-bottom: 0;
}

.post-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 30%, var(--amber-dim-strong), transparent 55%),
    linear-gradient(135deg, #ffffff 0%, var(--bg) 100%);
  position: relative;
  text-decoration: none;
}

.post-card__thumb img {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  opacity: 0.9;
}

.post-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.post-meta a {
  color: var(--amber);
  text-decoration: none;
}

.post-meta a:hover {
  text-decoration: underline;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.post-card__title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.post-card__title a:hover {
  color: var(--amber);
}

.post-card__excerpt {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

.read-more {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--amber);
}

.read-more:hover {
  color: var(--amber-hover);
}

/* Paginação */
.pagination {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--muted);
}

.pagination a:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.pagination .current {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--text-on-amber);
  font-weight: 600;
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Post único */
.post-single {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-single__thumb {
  aspect-ratio: 21 / 9;
  background:
    radial-gradient(circle at 20% 40%, var(--amber-dim-strong), transparent 45%),
    linear-gradient(160deg, #ffffff, var(--bg));
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.5rem;
}

.post-single__thumb img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.post-single__body {
  padding: 2rem 2rem 2.5rem;
}

.post-single h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.post-content {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.post-content p {
  margin: 0 0 1.25rem;
}

.post-content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.tag {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--amber-dim);
  color: var(--amber);
  text-decoration: none;
  border: 1px solid var(--border-amber);
}

.tag:hover {
  background: var(--amber);
  color: var(--text-on-amber);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.post-nav a {
  text-decoration: none;
  color: var(--muted);
  max-width: 45%;
}

.post-nav a:hover {
  color: var(--amber);
}

.post-nav strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
}

/* Sidebar widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
}

.widget__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-gold);
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.widget li:last-child {
  margin-bottom: 0;
}

.widget a {
  color: var(--muted);
  text-decoration: none;
}

.widget a:hover {
  color: var(--amber);
}

.widget--search input {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.widget--search button {
  width: 100%;
  margin-top: 0.5rem;
}

.widget--about p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.widget--about img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.recent-post__date {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.85;
  margin-top: 0.15rem;
}

@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: 2;
  }
  .post-single__body {
    padding: 1.5rem;
  }
}
