/* article.css — sdílené styly pro blogové články (extrahováno z blog/*.html šablony) */
.article-hero { padding: calc(var(--nav-h) + 56px) 0 56px; background: var(--bg-surface); border-bottom: 1px solid var(--border); }
.article-back { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 500; color: var(--text-muted); margin-bottom: 24px; transition: color var(--transition); }
.article-back:hover { color: var(--primary); }
.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.article-cat { display: inline-block; padding: 4px 12px; border-radius: 99px; background: #fef3c7; color: #b45309; font-size: .75rem; font-weight: 700; }
.article-date { font-size: .8125rem; color: var(--text-muted); }
.article-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--text); margin-bottom: 16px; }
.article-lead { font-size: 1.125rem; color: var(--text-muted); line-height: 1.75; max-width: 680px; }
.article-tags { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

.article-body { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: start; padding: 64px 0 96px; }
.article-content { min-width: 0; }
.article-content h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 48px 0 16px; padding-top: 48px; border-top: 1px solid var(--border); }
.article-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-content h3 { font-size: 1.125rem; font-weight: 700; color: var(--text); margin: 28px 0 12px; }
.article-content p { font-size: 1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.article-content strong { color: var(--text); font-weight: 600; }
.article-content ul, .article-content ol { padding-left: 0; margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.article-content li { font-size: 1rem; color: var(--text-muted); line-height: 1.7; padding-left: 20px; position: relative; }
.article-content ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: #d97706; }
.article-content ol { counter-reset: item; }
.article-content ol li { counter-increment: item; }
.article-content ol li::before { content: counter(item) "."; position: absolute; left: 0; font-weight: 700; color: #d97706; font-size: .875rem; }

.callout { background: #fffbeb; border-left: 3px solid #f59e0b; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 24px 0; }
.callout-title { font-size: .8125rem; font-weight: 700; color: #92400e; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.callout p { margin: 0; font-size: .9375rem; }
.callout-danger { background: #fff1f2; border-color: #f43f5e; }
.callout-danger .callout-title { color: #be123c; }
.callout-tip { background: #f0fdf4; border-color: #22c55e; }
.callout-tip .callout-title { color: #15803d; }

.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.adv-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.adv-icon { font-size: 2rem; margin-bottom: 10px; }
.adv-title { font-size: .9375rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.adv-desc { font-size: .8125rem; color: var(--text-muted); line-height: 1.6; }

.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .9rem; }
.comparison-table th { background: var(--text); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; font-size: .8125rem; }
.comparison-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.comparison-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.comparison-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; line-height: 1.5; }
.comparison-table tr:nth-child(even) td { background: var(--bg-surface); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td:first-child { font-weight: 600; color: var(--text); }
.badge-good { color: #15803d; font-weight: 600; }
.badge-bad  { color: #dc2626; font-weight: 600; }

.faq { display: flex; flex-direction: column; gap: 0; margin: 24px 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; gap: 16px; font-weight: 600; font-size: 1rem; color: var(--text); user-select: none; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 1.25rem; color: #d97706; flex-shrink: 0; transition: transform .25s; font-weight: 300; }
details[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 18px; font-size: .9375rem; color: var(--text-muted); line-height: 1.75; }

.article-cta { background: linear-gradient(135deg, #78350f 0%, #b45309 60%, #d97706 100%); border-radius: var(--radius-lg); padding: 44px 48px; color: #fff; margin-top: 48px; position: relative; overflow: hidden; }
.article-cta::before { content: ''; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.article-cta h3 { font-size: 1.5rem; font-weight: 800; color: #fff !important; margin-bottom: 10px; line-height: 1.3; }
.article-cta p { font-size: .9375rem; color: rgba(255,255,255,.85) !important; line-height: 1.75; margin-bottom: 24px; }
.article-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-white { background: #fff; color: #b45309; padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 700; font-size: .9375rem; transition: all var(--transition); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.btn-white:hover { background: #fffbeb; transform: translateY(-2px); }
.btn-white-outline { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.4); padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9375rem; transition: all var(--transition); }
.btn-white-outline:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.8); }

.article-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.sidebar-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.sidebar-title { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 14px; }
.toc { display: flex; flex-direction: column; gap: 6px; }
.toc a { font-size: .875rem; color: var(--text-muted); padding: 4px 8px; border-left: 2px solid var(--border); transition: all var(--transition); }
.toc a:hover { color: #d97706; border-color: #d97706; }
.related-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); transition: border-color var(--transition); margin-bottom: 10px; }
.related-card:hover { border-color: var(--primary); }
.related-icon { font-size: 1.5rem; flex-shrink: 0; }
.related-title { font-size: .875rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.related-cat { font-size: .75rem; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
sub, sup { font-size: .75em; }

@media (max-width: 900px) {
  .article-body { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .adv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .comparison-table { font-size: .8rem; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
  .article-cta { padding: 28px 24px; }
}
