/* Dark-mode blog styles for PDF Lab */
:root {
    --bg-page: #0F1419;
    --bg-section: #111827;
    --bg-card: #161B22;
    --bg-elevated: #1F2937;
    --border: #2A2F36;
    --text-primary: #E6EDF3;
    --text-muted: #9AA4AE;
    --heading: #F8FAFC;
    --accent: #D32F2F;
    --accent-hover: #B71C1C;
    --success: #2E7D32;
    --warning: #F9A825;
}

body {
    background:
      radial-gradient(circle at 20% 20%, rgba(211, 47, 47, 0.12), transparent 38%),
      linear-gradient(135deg, #111827 0%, #0F1419 55%, #0F1419 100%);
    color: var(--text-primary);
}

/* Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 28px 70px;
    color: var(--text-primary);
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.blog-container article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

/* Header Section */
.blog-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.blog-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    align-items: center;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* Featured Image */
.featured-image {
    width: 100%;
    height: 320px;
    background:
      radial-gradient(circle at 25% 25%, rgba(211, 47, 47, 0.18), transparent 42%),
      linear-gradient(140deg, #1C232D 0%, #111827 55%, #0F1419 100%);
    border-radius: 14px;
    margin: 30px 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F8FAFC;
    font-size: 3.2rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border);
}

/* Content Styles */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-primary);
    font-weight: 400;
}

.blog-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading);
    margin-top: 46px;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.blog-content h2:first-child {
    margin-top: 0;
}

.blog-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--heading);
    margin-top: 32px;
    margin-bottom: 14px;
    line-height: 1.35;
}

.blog-content p {
    margin-bottom: 18px;
    color: var(--text-primary);
}

.blog-content ul,
.blog-content ol {
    margin: 22px 0 22px 26px;
    padding-left: 0;
}

.blog-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--text-primary);
}

.blog-content strong {
    color: var(--heading);
    font-weight: 700;
}

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

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

/* Highlighted boxes */
.step-box {
    background: var(--bg-section);
    border-left: 4px solid var(--accent);
    padding: 22px 24px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.step-box h4 {
    color: var(--accent);
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.tip-box {
    background: rgba(46, 125, 50, 0.1);
    border-left: 4px solid var(--success);
    padding: 22px 24px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.tip-box strong {
    color: var(--success);
    font-weight: 700;
}

.warning-box {
    background: rgba(249, 168, 37, 0.1);
    border-left: 4px solid var(--warning);
    padding: 22px 24px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.warning-box strong {
    color: var(--warning);
    font-weight: 700;
}

/* Related Tools Section */
.related-tools {
    background: var(--bg-section);
    padding: 36px;
    border-radius: 14px;
    margin-top: 54px;
    border: 1px solid var(--border);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.related-tools h3 {
    color: var(--heading);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.45rem;
    font-weight: 700;
}

.related-tools > p {
    color: var(--text-muted);
    margin-bottom: 22px;
    font-size: 1rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.tool-link {
    background: var(--bg-card);
    padding: 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.tool-link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(211, 47, 47, 0.2);
}

.tool-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.tool-info h4 {
    margin: 0 0 6px 0;
    color: var(--heading);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.tool-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        padding: 32px 16px 46px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    }

    .blog-container article {
        padding: 22px;
    }

    .blog-title {
        font-size: 1.85rem;
    }

    .blog-meta {
        gap: 14px;
        font-size: 0.82rem;
    }

    .featured-image {
        height: 220px;
        font-size: 2.4rem;
        margin: 22px 0 28px;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-content h2 {
        font-size: 1.45rem;
        margin-top: 34px;
    }

    .blog-content h3 {
        font-size: 1.2rem;
        margin-top: 24px;
    }

    .step-box,
    .tip-box,
    .warning-box {
        padding: 18px 18px;
        margin: 22px 0;
    }

    .related-tools {
        padding: 26px 18px;
        margin-top: 38px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tool-link {
        padding: 16px;
    }
}

/* Print Styles */
@media print {
    .blog-container {
        max-width: 100%;
        padding: 0;
        box-shadow: none;
        color: #000;
    }

    .blog-container article {
        border: none;
        box-shadow: none;
        background: #fff;
    }

    .featured-image,
    .related-tools {
        display: none;
    }

    .blog-content {
        font-size: 12pt;
        line-height: 1.6;
    }

    .blog-content h2 {
        page-break-after: avoid;
    }

    .step-box,
    .tip-box,
    .warning-box {
        page-break-inside: avoid;
    }
}
