/* Blog-specific styles — La Gordita theme */

/* ============ BLOG NAV LINK ============ */
/* Hidden by default; revealed when posts exist */
.blog-nav-link { display: none; }
.has-posts .blog-nav-link { display: inline; }

/* ============ POST ARCHIVE ============ */
.archive-header { text-align: center; margin-bottom: clamp(32px, 5vw, 48px); }
.archive-header h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.06; letter-spacing: -0.015em; margin: 12px 0 0; }
.archive-header p { font-size: clamp(16px, 2vw, 18px); color: var(--fg2); line-height: 1.6; margin: 12px auto 0; max-width: 52ch; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.post-card { background: var(--bg-raised); border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s cubic-bezier(.34,1.4,.64,1), box-shadow .18s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.post-card__img { aspect-ratio: 16/9; background: var(--masa-300); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card__img img { transform: scale(1.04); }

.post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__cat { display: inline-flex; }
.post-card__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--fg1); margin: 0; }
.post-card__title a { text-decoration: none; color: inherit; }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt { font-size: 14.5px; color: var(--fg2); line-height: 1.6; margin: 0; }
.post-card__meta { font-size: 13px; color: var(--fg3); margin-top: auto; }
.post-card__readmore { font-weight: 800; font-size: 14px; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; margin-top: auto; }
.post-card__readmore:hover { color: var(--primary-hover); }

/* ============ POST SINGLE ============ */
.post-single { max-width: 720px; margin-inline: auto; }
.post-single__header { margin-bottom: 36px; }
.post-single__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.5vw, 48px); line-height: 1.06; letter-spacing: -0.015em; color: var(--fg1); margin: 16px 0 0; }
.post-single__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--fg3); margin-top: 14px; }
.post-single__feat { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 2px solid var(--border); margin-bottom: 36px; aspect-ratio: 16/9; }
.post-single__feat img { width: 100%; height: 100%; object-fit: cover; }

.post-content { font-size: 17px; line-height: 1.75; color: var(--fg2); }
.post-content h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--fg1); margin: 36px 0 14px; }
.post-content h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--fg1); margin: 28px 0 12px; }
.post-content p { margin: 0 0 20px; }
.post-content a { color: var(--primary); font-weight: 600; }
.post-content a:hover { color: var(--primary-hover); }
.post-content img { border-radius: var(--r-md); box-shadow: var(--shadow-sm); margin: 8px 0 24px; }
.post-content ul, .post-content ol { padding-left: 24px; margin: 0 0 20px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote { border-left: 4px solid var(--primary); padding: 12px 20px; margin: 24px 0; background: var(--buganvilla-50); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.post-content blockquote p { margin: 0; color: var(--fg1); font-style: italic; }

.post-footer { margin-top: 40px; padding-top: 32px; border-top: 1.5px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

/* ============ PAGINATION ============ */
.post-pagination { margin-top: 48px; text-align: center; }
.post-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.post-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--r-sm); border: 1.5px solid var(--border); font-weight: 700; font-size: 15px; color: var(--fg2); text-decoration: none; transition: all .15s; }
.post-pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.post-pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
}
