/* Blog card styling - matches scenario cards */
.blog-card {
    display: block;
}

.blog-card .card {
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    transition: none;
}

.blog-card .card:hover {
    transform: none;
    box-shadow: none;
    border-color: #e5e7eb;
}

.blog-card .card-body {
    position: relative;
    z-index: 1;
}

.blog-card .card-title {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
}

.blog-card .card-text {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.5;
}

/* Blog post content styling - clean typography */

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    letter-spacing: -0.003em;
}

.post-content p {
    margin-bottom: 1.75rem;
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.3;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.4;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.post-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.post-content a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s ease;
}

.post-content a:hover {
    text-decoration-color: rgba(0, 0, 0, 0.8);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.75rem;
}

.post-content li::marker {
    color: #757575;
}

.post-content blockquote {
    border-left: 3px solid #1a1a1a;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4a4a4a;
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2rem 0;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.post-content img:hover {
    opacity: 0.9;
}

.post-content figure {
    margin: 2.5rem 0;
}

.post-content figure img {
    margin-bottom: 0;
}

.post-content figcaption {
    font-size: 0.875rem;
    color: #757575;
    text-align: center;
    margin-top: 0.5rem;
}

.post-content pre {
    background-color: #f7f7f7;
    border-radius: 4px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.75rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-content code {
    font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace;
    font-size: 0.9em;
}

.post-content p code,
.post-content li code {
    background-color: #f0f0f0;
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

.post-content hr {
    border: none;
    text-align: center;
    margin: 3rem 0;
}

.post-content hr::before {
    content: "···";
    font-size: 1.5rem;
    letter-spacing: 1rem;
    color: #757575;
}

.post-content strong {
    font-weight: 700;
}

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

/* Lead paragraph - first paragraph styling */
.post-content > p:first-child,
.post-content > .lead {
    font-size: 1.375rem;
    line-height: 1.7;
    color: #4a4a4a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-content {
        font-size: 1.125rem;
        line-height: 1.75;
    }

    .post-content h2 {
        font-size: 1.5rem;
        margin-top: 2.5rem;
    }

    .post-content h3 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }

    .post-content > p:first-child,
    .post-content > .lead {
        font-size: 1.25rem;
    }

    .post-content blockquote {
        padding-left: 1rem;
        margin: 1.5rem 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    [data-bs-theme="dark"] .post-content {
        color: #e0e0e0;
    }

    [data-bs-theme="dark"] .post-content h2,
    [data-bs-theme="dark"] .post-content h3,
    [data-bs-theme="dark"] .post-content h4,
    [data-bs-theme="dark"] .post-content strong {
        color: #f5f5f5;
    }

    [data-bs-theme="dark"] .post-content a {
        text-decoration-color: rgba(255, 255, 255, 0.3);
    }

    [data-bs-theme="dark"] .post-content a:hover {
        text-decoration-color: rgba(255, 255, 255, 0.8);
    }

    [data-bs-theme="dark"] .post-content blockquote {
        border-left-color: #e0e0e0;
        color: #b0b0b0;
    }

    [data-bs-theme="dark"] .post-content > p:first-child,
    [data-bs-theme="dark"] .post-content > .lead {
        color: #b0b0b0;
    }

    [data-bs-theme="dark"] .post-content pre {
        background-color: #2d2d2d;
    }

    [data-bs-theme="dark"] .post-content p code,
    [data-bs-theme="dark"] .post-content li code {
        background-color: #3d3d3d;
    }

    [data-bs-theme="dark"] .post-content hr::before {
        color: #757575;
    }

    [data-bs-theme="dark"] .post-content li::marker {
        color: #a0a0a0;
    }

    [data-bs-theme="dark"] .post-content figcaption {
        color: #a0a0a0;
    }

    [data-bs-theme="dark"] .blog-card .card-text {
        color: #b0b0b0;
    }
}

