/* Professional Blog Content Styling */
/* Optimized for readability and modern aesthetics */

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #2d3748;
}

/* Typography */
.blog-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
    letter-spacing: -0.025em;
}

.blog-content h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #1a202c;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f7fafc;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.blog-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

.blog-content h5,
.blog-content h6 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.6;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Paragraphs */
.blog-content p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.blog-content p:first-of-type {
    font-size: 1.125rem;
    color: #4a5568;
}

/* Links */
.blog-content a {
    color: #F25022;
    text-decoration: underline;
    text-decoration-color: rgba(242, 80, 34, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.blog-content a:hover {
    color: #d9441d;
    text-decoration-color: rgba(217, 68, 29, 0.6);
}

/* Lists */
.blog-content ul,
.blog-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-content ul {
    list-style-type: disc;
}

.blog-content ol {
    list-style-type: decimal;
}

.blog-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.blog-content li > ul,
.blog-content li > ol {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Blockquotes */
.blog-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid #F25022;
    background: linear-gradient(to right, rgba(242, 80, 34, 0.05), transparent);
    font-style: italic;
    color: #4a5568;
    border-radius: 0 8px 8px 0;
}

.blog-content blockquote p {
    margin-bottom: 0;
}

.blog-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
.blog-content code {
    background: #f7fafc;
    color: #e53e3e;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-weight: 500;
}

.blog-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Images */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-content figure {
    margin: 2rem 0;
}

.blog-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Tables */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.blog-content th,
.blog-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.blog-content th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 2px solid #cbd5e0;
}

.blog-content tr:hover {
    background: #f7fafc;
}

/* Horizontal Rule */
.blog-content hr {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 3rem 0;
}

/* Callout Boxes */
.blog-content .callout {
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.blog-content .callout-info {
    background: rgba(49, 130, 206, 0.1);
    border-color: #3182ce;
    color: #2c5282;
}

.blog-content .callout-warning {
    background: rgba(237, 137, 54, 0.1);
    border-color: #ed8936;
    color: #7c2d12;
}

.blog-content .callout-success {
    background: rgba(72, 187, 120, 0.1);
    border-color: #48bb78;
    color: #22543d;
}

.blog-content .callout-tip {
    background: rgba(159, 122, 234, 0.1);
    border-color: #9f7aea;
    color: #44337a;
}

/* Video Embeds */
.blog-content .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 8px;
}

.blog-content .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Emphasis */
.blog-content strong {
    font-weight: 700;
    color: #1a202c;
}

.blog-content em {
    font-style: italic;
}

/* Section Dividers */
.blog-content section {
    margin: 3rem 0;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Anchor link hover effect for headings */
.blog-content h2:hover .heading-anchor,
.blog-content h3:hover .heading-anchor,
.blog-content h4:hover .heading-anchor {
    opacity: 1;
}

.blog-content .heading-anchor {
    opacity: 0;
    margin-left: 0.5rem;
    color: #cbd5e0;
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-weight: normal;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .blog-content {
        font-size: 16px;
    }

    .blog-content h1 {
        font-size: 2rem;
    }

    .blog-content h2 {
        font-size: 1.75rem;
    }

    .blog-content h3 {
        font-size: 1.375rem;
    }

    .blog-content h4 {
        font-size: 1.125rem;
    }

    .blog-content ul,
    .blog-content ol {
        padding-left: 1.5rem;
    }

    .blog-content blockquote {
        padding: 1rem 1.5rem;
    }

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

/* Print styles */
@media print {
    .blog-content {
        font-size: 12pt;
    }

    .blog-content a {
        text-decoration: underline;
        color: #000;
    }

    .blog-content pre {
        background: #f7fafc;
        color: #000;
        border: 1px solid #e2e8f0;
    }
}
