@charset "UTF-8";
/**
 * Zobrazenie obsahu (článok / projekt / kniha) – zdieľané CSS štýly
 * Cesta: /home/html/michal.6f.sk/public_html/assets/css/content.css
 *
 * Zdroj dizajnu: public_html/article.php
 * Používané v: article.php, admin/articles_view.php, admin/projects_view.php,
 *              shared.php, admin/library_view.php
 *
 * Reset a CSS premenné (--blue, --text, --muted, --blue-l) sú v base.css
 * (načítava sa pred týmto súborom na každej stránke, ktorá tento súbor používa).
 */

/* ══ HERO OBRÁZOK – zachováva pomer strán ══ */
.art-hero {
    position: relative;
    width: 100%;
    min-height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0d1117;
    overflow: hidden;
}
.art-hero img {
    /* Zachová pomer strán, na malých obrazovkách plná šírka,
       na väčších sa zobrazí v skutočnej veľkosti vycentrovaný */
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
}
/* Gradient overlay – spodná časť plynule prechádza do pozadia stránky.
   Silnejší/skorší nábeh do tmava ako predtým – nadpis nad fotkou je teraz tenký (300)
   bez text-shadow, takže čitateľnosť musí zaistiť samotný scrim. */
.art-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,17,23,0)    0%,
        rgba(13,17,23,0.2)  35%,
        rgba(13,17,23,0.75) 70%,
        rgba(13,17,23,1)    100%
    );
    pointer-events: none;
}

/* ══ OBSAH ══ */
.art-body {
    padding: 0 20px 80px;
}

/* Nadpis – vytiahnutý nad obrázok pomocou negatívneho marginu */
.art-header {
    position: relative;
    z-index: 2;
    margin-top: -120px;
    padding: 0 20px;
}

/* Breadcrumb */
.art-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; color: rgba(139,157,176,0.7);
    margin-bottom: 16px; flex-wrap: wrap;
}
.art-breadcrumb a { color: rgba(139,157,176,0.7); transition: color .2s; }
.art-breadcrumb a:hover { color: var(--blue); }
.art-breadcrumb span { color: rgba(45,55,72,0.6); }

/* Kategória badge */
.art-cat {
    display: inline-block;
    font-size: 10px; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--blue);
    padding: 3px 12px;
    border: 1px solid rgba(56,189,248,0.35);
    border-radius: 20px;
    margin-bottom: 14px;
    text-decoration: none;
    transition: background .2s;
}
.art-cat:hover { background: rgba(56,189,248,0.08); }

/* Nadpis – rovnaký štýl ako .section-heading (index.php/omne.php): tenké písmo, žiadny text-shadow.
   Čitateľnosť nad hero fotkou zabezpečuje silnejší scrim v .art-hero::after nižšie. */
h1.art-title, .art-title {
    font-size: clamp(26px, 5vw, 48px);
    font-weight: 300;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

/* Meta */
.art-meta {
    display: flex; align-items: center; gap: 16px;
    font-size: 12px; color: rgba(139,157,176,0.8);
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(45,55,72,0.35);
    flex-wrap: wrap;
}

/* ══ OBSAH – zladené s .history-section (public_html/index.php) ══ */
.art-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: var(--text);
}
.art-content h1 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 300; color: var(--white);
    margin: 44px 0 26px;
    line-height: 1.2;
}
.art-content h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 300; color: var(--white);
    margin: 40px 0 24px;
    line-height: 1.25;
}
.art-content h3 {
    font-size: 18px; font-weight: 600;
    color: #ffffff; margin: 32px 0 10px; line-height: 1.3;
}
.art-content p  { margin-bottom: 22px; }
.art-content strong,
.art-content b  { font-weight: 700; color: var(--white); }
.art-content em,
.art-content i  { font-style: italic; }
.art-content a  { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.art-content a:hover { color: var(--blue-l); }

/* Zoznamy – vlastná odrážka/číslo namiesto natívnej, presne ako .history-list */
.art-content ul,
.art-content ol {
    list-style: none;
    margin: 12px 0 22px 24px;
    padding: 0;
}
.art-content li {
    display: list-item;
    list-style: none;
}
.art-content ul > li::before {
    content: '\00B7';
    color: var(--blue);
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
}
.art-content ol { counter-reset: art-ol; }
.art-content ol > li { counter-increment: art-ol; }
.art-content ol > li::before {
    content: counter(art-ol) '.';
    color: var(--blue);
    font-weight: 600;
    margin-right: 8px;
    vertical-align: middle;
}
.art-content img {
    max-width: 100%; height: auto;
    border-radius: 10px; margin: 32px 0;
    border: 1px solid rgba(45,55,72,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.art-content blockquote {
    border-left: 3px solid var(--blue);
    padding: 8px 0 8px 24px;
    margin: 32px 0;
    color: var(--blue-l);
    font-weight: 300;
    font-style: italic;
    font-size: 14px;
}
.art-content pre {
    background: rgba(13,17,23,0.9);
    border: 1px solid rgba(45,55,72,0.6);
    border-radius: 10px; padding: 20px;
    overflow-x: auto; font-size: 12px; line-height: 1.6; margin-bottom: 22px;
}
.art-content code {
    background: rgba(45,55,72,0.5);
    color: var(--white);
    padding: 2px 7px; border-radius: 4px; font-size: 12px;
}
.art-content pre code {
    background: transparent; padding: 0;
}
/* Zaškrtávacie políčko (vkladané cez TinyMCE menu Insert) – vlastný vzhľad zladený
   so zvyškom stránky namiesto natívneho vzhľadu prehliadača. */
.art-content input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px; height: 22px;
    /* Záporný spodný okraj – box je vyšší (22px) než okolitý text (13px) a bez kompenzácie
       by natiahol výšku celého riadka (medzery medzi checkboxami by boli príliš veľké). */
    margin: 0 9px -1px 0;
    border: 2px solid var(--blue);
    border-radius: 6px;
    background: rgba(45,55,72,0.5);
    position: relative;
    /* Číselná hodnota namiesto "middle" – tá by pri takomto rozdiele výšky textu (13px)
       a boxu (22px) box zarovnala príliš vysoko nad stred riadka. */
    vertical-align: -6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
}
.art-content input[type="checkbox"]:hover  { border-color: var(--blue-l); }
.art-content input[type="checkbox"]:focus-visible { outline: 2px solid var(--blue-l); outline-offset: 2px; }
.art-content input[type="checkbox"]:checked {
    background: var(--blue);
    border-color: var(--blue);
}
.art-content input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px; top: 2px;
    width: 6px; height: 11px;
    border: solid #0d1117;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* Väčšia dotyková plocha na mobile/tablete (prst namiesto kurzora myši) */
@media (pointer: coarse) {
    .art-content input[type="checkbox"] { width: 27px; height: 27px; margin: 0 10px -3px 0; vertical-align: -8px; }
    .art-content input[type="checkbox"]:checked::after { left: 8px; top: 3px; width: 7px; height: 13px; }
}
.art-content table {
    width: 100%; border-collapse: collapse;
    margin-bottom: 22px; font-size: 13px;
}
.art-content th,
.art-content td { padding: 11px 16px; border: 1px solid rgba(45,55,72,0.5); }
.art-content th {
    color: #ffffff; font-weight: 600;
    letter-spacing: .04em;
    background: rgba(28,33,40,0.9);
}

/* Kľúčové slová */
.art-keywords {
    margin-top: 48px; padding-top: 24px;
    border-top: 1px solid rgba(45,55,72,0.3);
    font-size: 12px; color: var(--muted);
    display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.art-kw {
    background: rgba(28,33,40,0.7);
    border: 1px solid rgba(45,55,72,0.6);
    border-radius: 4px; padding: 3px 10px;
    color: var(--text); font-size: 11px;
}

/* Zdieľať */
.share-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: transparent;
    border: 1px solid rgba(45,55,72,0.8);
    color: var(--text); border-radius: 7px;
    padding: 9px 18px; font-size: 12px; font-weight: 500;
    font-family: inherit; cursor: pointer; transition: all .2s;
    margin-top: 28px;
}
.share-btn:hover { border-color: var(--blue); color: var(--blue); }
