/* =========================================
   BLOG-SPECIFIC STYLES
========================================= */

/* Article content styling */
article p {
    margin-top: var(--sp-sm);
    margin-bottom: var(--sp-sm);
}

article img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    display: block;
    margin: var(--sp-md) auto;
}

article pre {
    background-color: var(--c-panel);
    padding: var(--sp-sm);
    border-radius: var(--radius);
    overflow-x: scroll;
    border: 1px solid var(--c-border);
    box-shadow: var(--box-shadow);
    font-family: var(--font-mono);
    backdrop-filter: blur(var(--blur));
    margin: var(--sp-md) 0;
    width: 100%;
}

article pre code { 
    font-family: var(--font-mono);
}

article pre code {
    color: var(--c-accent);
}

/* Inline code styling */
article code {
    background-color: var(--c-panel);
    color: var(--c-accent);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    border: 1px solid var(--c-border);
}

/* Don't style code inside pre blocks */
article pre code {
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
}

article a.image {
    text-decoration: none;
    border: none;
    box-shadow: none;
    background: none;
}
article a.image:hover {
    text-decoration: none;
    border: none;
    box-shadow: none;
    background: none;
}

/* Post navigation */
.post-nav-link {
    text-decoration: none;
    padding: var(--sp-sm);
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.post-nav-link:hover {
    background-color: var(--c-panel);
    text-decoration: none;
}
