/* Blog SEOHlídač.cz — samostatný styl pro /clanky/ (nezávislý na app style.css) */
:root {
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --navy: #0a1628;
    --navy-2: #0f1f3a;
    --bg: #f0f4f8;
    --surface: #ffffff;
    --text: #0f172a;
    --text-2: #475569;
    --muted: #64748b;
    --border: #e2e8f0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", system-ui, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 20;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.site-header .brand img { display: block; height: 34px; width: auto; }
.site-header .nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 15px; }
.site-header .nav a { color: var(--text-2); font-weight: 600; }
.site-header .nav a.cta { background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 8px; }
.site-header .nav a.cta:hover { background: var(--accent-hover); text-decoration: none; }

/* Article */
main { padding: 28px 0 56px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.article { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px clamp(20px, 5vw, 56px); max-width: 820px; margin: 0 auto; }
.article h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.18; margin: 0 0 12px; letter-spacing: -0.02em; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.article h2 { font-size: clamp(21px, 3vw, 27px); line-height: 1.25; margin: 38px 0 12px; letter-spacing: -0.01em; }
.article p { margin: 0 0 18px; color: #1f2a3a; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article code { background: #eef2f7; padding: 2px 6px; border-radius: 5px; font-size: 0.9em; }
.featured { margin: 0 0 28px; }
.featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }
.featured figcaption { color: var(--muted); font-size: 12px; margin-top: 6px; }

/* CTA box */
.cta { margin: 36px 0; padding: 28px clamp(20px, 4vw, 34px); border-radius: 14px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.cta h2 { margin: 0 0 8px; color: #fff; font-size: 22px; }
.cta p { color: #cdd8ea; margin: 0 0 8px; }
.cta .buttons { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn { display: inline-block; font-weight: 700; padding: 12px 22px; border-radius: 9px; }
.cta .btn-primary { background: var(--accent); color: #fff; }
.cta .btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.cta .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.16); text-decoration: none; }

/* Related links */
.related { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 24px; }
.related h2 { font-size: 20px; margin: 0 0 14px; }
.links-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.links-list a { font-weight: 600; }

/* Blog listing */
.listing-head { text-align: center; max-width: 720px; margin: 8px auto 36px; }
.listing-head h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 12px; letter-spacing: -0.02em; }
.listing-head p { color: var(--text-2); font-size: 18px; margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.10); }
.card a.card-img { display: block; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h2 { font-size: 19px; line-height: 1.3; margin: 0; }
.card-body h2 a { color: var(--text); }
.card-body p { color: var(--text-2); font-size: 14px; margin: 0; flex: 1; }
.card-body .read { font-weight: 700; color: var(--accent); font-size: 14px; }

/* Footer */
footer.site-footer { background: var(--navy); color: #aab8cf; padding: 30px 0; margin-top: 40px; font-size: 14px; }
footer.site-footer a { color: #cdd8ea; }
footer.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
