/* Blog: seznam článků i detail článku (CZ i EN) */
/* ---------- SEZNAM ČLÁNKŮ ---------- */
body {
    padding-top: 130px; /* výška fixní lišty na desktopu */
    background-color: #fff;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
}
.php-error-alert {
    background-color: #fee;
    border: 1px solid #daa;
    padding: 15px;
    margin: 20px auto 40px auto;
    max-width: 800px;
    text-align: center;
    color: #a44;
    border-radius: 8px;
    font-size: 1.1rem;
}
.blog-section {
    padding: 40px 20px 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}
.blog-header-center { text-align: center; margin-bottom: 60px; }
.section-subtitle-blog {
    color: #e89547; font-size: 0.9rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 15px; display: block;
}
.section-title-blog {
    font-family: 'Times New Roman', serif; font-style: italic;
    font-size: 3.5rem; color: #222; margin-bottom: 20px; line-height: 1.2;
}
.blog-description { color: #666; font-size: 1.1rem; max-width: 600px; margin: 0 auto; line-height: 1.6; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}
/* Karty */
.article-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex; flex-direction: column; border: 1px solid #f0f0f0;
}
.article-card:hover { transform: translateY(-8px); }
.card-img-link { height: 240px; overflow: hidden; display: block; position: relative; }
.card-img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.article-card:hover .card-img-link img { transform: scale(1.08); }
.card-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.card-meta { font-size: 0.8rem; color: #999; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.card-title { font-size: 1.6rem; font-weight: 700; line-height: 1.3; margin-bottom: 15px; color: #222; }
.card-title a { text-decoration: none; color: inherit; transition: color 0.3s; }
.card-title a:hover { color: #e89547; }
.card-perex { font-size: 1rem; color: #555; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }
.btn-blog {
    display: block; width: 100%; padding: 14px 0; text-align: center;
    background-color: #e89547; color: #fff; font-weight: 700;
    text-transform: uppercase; font-size: 0.9rem; border-radius: 6px;
    text-decoration: none; transition: background 0.3s;
}
.btn-blog:hover { background-color: #333; }

/* ---------- DETAIL ČLÁNKU ---------- */
/* --- 2. STYLY PRO ČLÁNEK --- */
.article-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
}
.breadcrumbs {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.breadcrumbs a { text-decoration: none; color: #999; }
.breadcrumbs a:hover { color: #e89547; }
.post-title {
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
    color: #111;
    margin-bottom: 25px;
}
/* Autor */
.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}
.author-img {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    background: #eee;
}
.meta-text span { display: block; }
.author-name { font-weight: bold; color: #000; }

/* Fotka */
.featured-img-box {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.featured-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Text článku */
.post-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #222;
}
.post-content p { margin-bottom: 25px; }
.post-content h2 { margin-top: 40px; margin-bottom: 15px; font-size: 1.8rem; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
/* Sdílení */
.share-section { margin-top: 60px; padding-top: 40px; border-top: 1px solid #eee; }
.share-label { font-weight: bold; text-transform: uppercase; font-size: 0.9rem; display: block; margin-bottom: 15px; }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
    display: inline-flex; align-items: center; padding: 10px 20px;
    border-radius: 30px; text-decoration: none; color: white !important;
    font-weight: 600; font-size: 0.9rem; transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.9; }
.share-btn i { margin-right: 8px; }
/* Mobil */
@media (max-width: 768px) {
    .post-title { font-size: 2.2rem; }
    .article-wrapper { padding: 30px 20px; }
}

/* ---------- RESPONZIVITA (seznam článků a odsazení pod lištou) ---------- */
@media (max-width: 1000px) {
    body { padding-top: 105px; }
}
@media (max-width: 768px) {
    body { padding-top: 85px; }
    .blog-grid { grid-template-columns: 1fr; }
    .section-title-blog { font-size: 2.5rem; }
}
