:root {
    --bg-color: #f9f9f7; /* Jemná papírová barva */
    --text-color: #2c2c2c;
    --accent-color: #d1495b; /* Červená pro akcenty */
    --border-color: #e0e0e0;
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-serif);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Header */
.site-header {
    text-align: center;
    padding: 4rem 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
    background: #fff;
}

.brand {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    display: block;
    margin-bottom: 0.5rem;
}

h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin: 0.5rem 0;
    font-weight: 900;
    letter-spacing: -1px;
}

.subtitle {
    font-family: var(--font-sans);
    color: #555;
    font-size: 1.1rem;
}

/* Container */
.container {
    max-width: 800px; /* Úzký sloupec pro lepší čtení */
    margin: 0 auto;
    padding: 0 1rem;
}

/* Article Card */
article {
    background: #fff;
    padding: 3rem;
    margin-bottom: 4rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

article header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee; /* Jemná linka pod nadpisem */
}

article h1 {
    font-size: 2.2rem; /* Velikost hlavního nadpisu */
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #111;
}

.meta-date {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #d1495b; /* Červená pro datum */
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* STYLY PRO OBSAH ČLÁNKU (To, co posílá n8n) */

/* Perex (generuješ jako <p class="lead">) */
.article-body .lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    color: #444;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
}

/* Nadpisy v textu (generuješ <h2>) */
.article-body h2 {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
    font-weight: 600;
    border-left: 4px solid #d1495b; /* Červený proužek vlevo */
    padding-left: 1rem;
}

/* Nadpis "Co to znamená pro budoucnost" (generuješ <h3>) */
.article-body h3 {
    background: #f0f4f8;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 4px 4px 0 0;
    color: #2a9d8f;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Běžný text */
.article-body p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: #333;
}

/* Oddělovač */
.article-body hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 3rem 0;
}

/* Zdroje (generuješ <div class="sources">) */
.article-body .sources {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #666;
    background: #fafafa;
    padding: 1.5rem;
}

.article-body .sources ul {
    list-style: none;
    padding-left: 0;
}

.article-body .sources li {
    margin-bottom: 0.5rem;
    word-break: break-all; /* Aby dlouhé URL nerozbily design */
}

.post-preview-card {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border-color: #ccc;
}

.post-preview-card h2 {
    font-size: 1.8rem;
    margin-top: 0.5rem;
}

.post-preview-card h2 a {
    text-decoration: none;
    color: #111;
    background-image: linear-gradient(#d1495b, #d1495b);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .3s;
}

.post-preview-card h2 a:hover {
    background-size: 100% 2px;
}

.preview-content {
    color: #555;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Omezí náhled na 3 řádky */
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Tlačítko Číst dál */
.read-more-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #2c2c2c;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s;
}

.read-more-btn:hover {
    background-color: #d1495b;
}

/* === STYLY PRO DETAIL ČLÁNKU === */

/* Tlačítko Zpět */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    text-decoration: none;
    color: #666;
    font-family: var(--font-sans);
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.back-link:hover {
    color: #d1495b;
    border-bottom-color: #d1495b;
}

.full-article {
    background: #fff;
    padding: 3rem 4rem; /* Větší padding pro čtení */
    border: none;
    box-shadow: none;
}

/* Zachování typografie z minula pro full-article */
.full-article header {
    text-align: center;
    margin-bottom: 3rem;
}

.full-article h1 {
    font-size: 2.8rem;
}

.full-article .meta-date {
    justify-content: center;
    display: flex;
}

/* Responzivita */
@media (max-width: 600px) {
    .full-article {
        padding: 1.5rem;
    }
    .full-article h1 {
        font-size: 2rem;
    }
}
