/* ──────────────────────────────────────────────────────── */
/*  Blog Styles – QuickPDF Assistant                       */
/*  Inherits design tokens from /styles.css                */
/* ──────────────────────────────────────────────────────── */

/* ── Blog Hero ─────────────────────────────────────────── */
.blog-hero {
    position: relative;
    text-align: center;
    padding: 100px 32px 60px;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 700px;
    background: radial-gradient(
        ellipse 80% 60% at 50% 20%,
        rgba(240, 101, 67, 0.10) 0%,
        rgba(255, 154, 139, 0.08) 25%,
        rgba(200, 160, 240, 0.06) 50%,
        rgba(250, 251, 252, 0) 80%
    );
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .blog-hero::before {
    background: radial-gradient(
        ellipse 80% 60% at 50% 20%,
        rgba(240, 101, 67, 0.15) 0%,
        rgba(255, 154, 139, 0.1) 25%,
        rgba(200, 160, 240, 0.08) 50%,
        rgba(15, 23, 42, 0) 80%
    );
}

.blog-hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--color-text);
}

.blog-hero p {
    position: relative;
    z-index: 1;
    font-size: clamp(16px, 2vw, 19px);
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Blog Grid (Listing Page) ──────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    padding: 64px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 24px;
}

.blog-card h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin-bottom: 8px;
}

.blog-card h2 a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card h2 a:hover {
    color: var(--color-coral);
}

.blog-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.blog-excerpt {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-coral);
    text-decoration: none;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 10px;
}

/* ── Blog CTA Section ──────────────────────────────────── */
.blog-cta {
    text-align: center;
    padding: 72px 32px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.blog-cta h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--color-text);
}

.blog-cta p {
    font-size: 17px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.blog-cta .btn-primary {
    display: inline-flex;
}

/* ── Blog Post Article ─────────────────────────────────── */
.blog-post {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 32px 80px;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
}

.blog-header h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--color-text);
}

.blog-header .blog-meta {
    font-size: 14px;
}

.blog-hero-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    border: 1px solid var(--color-border);
}

/* ── Blog Content ──────────────────────────────────────── */
.blog-content {
    font-size: 17px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.blog-content h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 48px 0 20px;
}

.blog-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin: 36px 0 14px;
}

.blog-content p {
    margin-bottom: 18px;
}

.blog-content a {
    color: var(--color-coral);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-content a:hover {
    color: var(--color-coral-dark);
    text-decoration: underline;
}

.blog-content strong {
    color: var(--color-text);
    font-weight: 600;
}

.blog-content ul,
.blog-content ol {
    margin: 16px 0 20px 24px;
}

.blog-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-content blockquote {
    border-left: 3px solid var(--color-coral);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(240, 101, 67, 0.04);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text);
}

[data-theme="dark"] .blog-content blockquote {
    background: rgba(240, 101, 67, 0.08);
}

/* ── Blog Footer CTA ──────────────────────────────────── */
.blog-footer-cta {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 36px;
    border-radius: var(--radius-xl);
    margin-top: 56px;
    text-align: center;
}

.blog-footer-cta h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--color-text);
}

.blog-footer-cta p {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    font-size: 16px;
}

.blog-footer-cta .btn-primary {
    display: inline-flex;
}

/* ── Related Posts ─────────────────────────────────────── */
.blog-related-posts {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.blog-related-posts h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--color-text);
}

.blog-related-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-related-posts li {
    margin-bottom: 12px;
}

.blog-related-posts a {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-coral);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-related-posts a:hover {
    color: var(--color-coral-dark);
    text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .blog-hero {
        padding: 72px 20px 40px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 20px;
    }

    .blog-post {
        padding: 24px 20px 60px;
    }

    .blog-header h1 {
        font-size: 26px;
    }

    .blog-content {
        font-size: 16px;
    }

    .blog-content h2 {
        font-size: 22px;
        margin-top: 36px;
    }

    .blog-footer-cta {
        padding: 28px 20px;
    }

    .blog-cta {
        padding: 48px 20px;
    }
}
