/* ============================================
   TechMepaso — Blog styles (extends styles.css)
   ============================================ */

.blog-page { padding-top: 80px; }

/* ── Blog hero ── */
.blog-hero {
    padding: 80px 0 48px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}
.blog-hero .section-tag { margin-bottom: 14px; }
.blog-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.12;
    color: var(--text);
    max-width: 760px;
}
.blog-hero p {
    margin-top: 18px;
    font-size: 1.1rem;
    color: var(--text-2);
    max-width: 640px;
}

/* ── Breadcrumb ── */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* ── Blog listing grid ── */
.blog-list { padding: 64px 0 100px; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}
.post-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.post-cat {
    background: var(--primary-light);
    color: var(--primary-hover);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
}
.post-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 12px;
}
.post-card p {
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.65;
    flex-grow: 1;
}
.post-link {
    margin-top: 18px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.post-card:hover .post-link i { transform: translateX(4px); }
.post-link i { transition: transform 0.3s var(--ease-out); }

/* ── Article ── */
.article { padding: 48px 0 80px; }
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 18px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.prose { color: var(--text-2); font-size: 1.08rem; line-height: 1.8; }
.prose h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin: 44px 0 16px;
    letter-spacing: -0.5px;
}
.prose h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 32px 0 12px;
}
.prose p { margin-bottom: 20px; }
.prose ul, .prose ol { margin: 0 0 20px 22px; }
.prose li { margin-bottom: 10px; list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--primary); font-weight: 500; text-decoration: underline; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-alt);
    padding: 18px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0 0 24px;
    font-style: italic;
    color: var(--text);
}

/* ── Article CTA ── */
.article-cta {
    margin-top: 48px;
    background: var(--grad);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    color: #fff;
}
.article-cta h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}
.article-cta p { color: rgba(255,255,255,.85); margin-bottom: 22px; }
.article-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--primary-hover);
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 999px;
}

@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
    .article-cta { padding: 30px 22px; }
}
