/* ================= Moderní font a základní nastavení ================= */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #111;
}

/* ================= Header ================= */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
    background-color: #fff;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo img {
    height: 120px; /* větší logo */
    width: auto;
}

.navigace {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.navigace h2 {
    margin: 0;
    font-size: 16px;
}

.navigace a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: color 0.3s, transform 0.2s;
}

.navigace a:hover {
    color: #007BFF;
    transform: translateY(-2px);
}

/* Čára pod navigací */
.divider {
    height: 2px;
    background-color: #000;
    width: 100%;
    margin: 10px 0 0 0;
    border-radius: 1px;
}

/* ================= Container článků ================= */
.article-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.7;
    font-size: 18px;
}

/* ================= Boxy článků na hlavní stránce ================= */
.clanky {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.article-item, .item-link {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-item img, .item-link img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-text {
    padding: 15px;
}

.article-text h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.article-text p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* ================= Styl článku ================= */
.article-container h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.article-container h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-container h3 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.article-container p {
    margin-bottom: 18px;
}

.article-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
}

.article-meta {
    color:#777;
    margin-bottom:25px;
    font-size:14px;
}

/* Pozice pro reklamy */
.adsense-slot {
    margin: 30px 0;
    text-align: center;
}

/* ================= Related Articles ================= */
.related-articles {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.related-articles h2 {
    margin-bottom: 20px;
    font-size: 26px;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.related-articles li {
    flex: 1 1 calc(33.333% - 20px); /* 3 články vedle sebe */
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.related-articles li:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-articles a {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
}

.related-articles .thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.related-articles .excerpt {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
    flex-grow: 1;
}

/* ================= Footer ================= */
footer {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #555;
}

/* ================= Responzivní ================= */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }
    .navigace {
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }
    .related-articles li {
        flex: 1 1 calc(50% - 10px); /* 2 články vedle sebe */
    }
}

@media (max-width: 480px) {
    .related-articles li {
        flex: 1 1 100%; /* 1 článek na řádek */
    }
}
