/* ============================================================
   ARTICLE DETAIL – s podporou proměnných tématu
   ============================================================ */

main.article {
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem 1.5rem 1rem;
    background: var(--paper-1, #fff);
    color: var(--text, #222);
    border-radius: 1rem;
    box-shadow: 0 .5rem 1.2rem rgba(0, 0, 0, 0.04);

}

/* --- META --- */
.article-meta {
    color: var(--text-muted, #6c757d);
    font-size: 0.8rem;
    margin-top: 10px;
    margin-bottom: 0;
}

/* --- HERO SECTION --- */
.article-hero {
    padding: 0 1rem;
    position: relative;
}

.article-hero h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text, #111);
}

.article-hero p {
    color: var(--text-secondary, #666);
    margin: 0 auto;
}

/* --- IMAGE --- */
.article img.article-image {
    border-radius: .8rem;
    margin: 0;
    width: 100%;
    height: auto;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease;
}

/* --- TEXT --- */
.article p {
    line-height: 1.75;
    color: var(--text, #333);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.article h2 {
    font-size: 1.4rem;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    color: var(--bs-primary, #893132);
    font-weight: 600;
}

/* --- QUOTES / BLOCKS --- */
.article blockquote {
    border-left: 4px solid var(--bs-primary, #893132);
    margin: 1.5rem 0;
    padding: .75rem 1rem;
    background: color-mix(in srgb, var(--bs-primary, #893132) 8%, var(--paper-2, #f6f6f6));
    border-radius: .5rem;
    font-style: italic;
    color: var(--text, #333);
}

/* --- LINKS --- */
.article a {
    color: var(--bs-link-color, var(--bs-primary, #893132));
    text-decoration: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.article a:hover {
    color: var(--bs-link-hover-color, #a84b4b);
    text-shadow: 0 0 4px color-mix(in srgb, var(--bs-primary, #893132) 30%, transparent);
}

/* --- FOOTER --- */
.article-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid color-mix(in srgb, var(--text, #111) 10%, transparent);
}

.article-footer .btn {
    padding: .6rem 1.3rem;
    font-weight: 500;
}

/* ============================================================
   DARK THEME TWEAKS
   ============================================================ */
html[data-theme="dark"] main.article {
    background: var(--paper-2, #1b1c1f);
    box-shadow: 0 .5rem 1.2rem rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .article img.article-image {
    box-shadow: 0 .6rem 1.5rem rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .article p,
html[data-theme="dark"] .article-meta {
    color: var(--text, #e4e4e4);
}

html[data-theme="dark"] .article h2 {
    color: var(--bs-primary, #893132);
}

html[data-theme="dark"] .article blockquote {
    background: color-mix(in srgb, var(--bs-primary, #893132) 15%, var(--paper-2, #1b1c1f));
    color: var(--text, #ddd);
    border-left-color: var(--bs-primary, #893132);
}
