
.article-body {
    max-width: 80ch;
    font-size: 1.1rem;
    line-height: 1.7;
}

.article-body p {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.article-body h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
    padding-bottom: 0.5rem;
}

.article-body h1:first-child {
    margin-top: 1.5rem;
}

.article-body hr {
    margin: 1.5rem 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
}

.article-body a {
    color: red;
    text-decoration: underline;
    text-decoration-style: dashed;
}

.article-body a:hover {
    text-decoration-style: solid;
}

.article-body img.zoom-enabled {
    transition: transform 0.2s ease;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-body img.zoom-enabled:hover {
    transform: scale(1.02);
}

.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
}

.image-zoom-overlay.active {
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 1;
    backdrop-filter: blur(5px);
}

.image-zoom-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-zoom-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-zoom-overlay.active .image-zoom-content {
    transform: scale(1);
}

.image-zoom-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.image-zoom-close:hover {
    background: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .image-zoom-close {
        top: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.95);
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    
    .image-zoom-container {
        max-width: 100vw;
        max-height: 100vh;
        padding: 20px;
        box-sizing: border-box;
    }
}

pre[class*="language-"],
code[class*="language-"] {
    white-space: pre !important;
    overflow-x: auto;
    overflow-y: hidden;
    word-break: normal;
    word-wrap: normal;
}

pre[class*="language-"] {
    max-width: 100%;
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Ensure inline code doesn't break */
:not(pre) > code[class*="language-"] {
    white-space: nowrap !important;
    padding: 0.3em 0.5em;
    border-radius: 4px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    font-size: 0.85em;
}