/* ============================================
   Blog Article Styles
   ============================================ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--cyan), var(--purple));
    z-index: 200;
    transition: width 0.05s linear;
    box-shadow: 0 0 10px var(--accent-glow);
}

.article-page {
    padding: 48px 0 80px;
}

.article-container {
    max-width: 800px !important;
}

.article-header {
    margin-bottom: 48px;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cat-tag {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dot { color: var(--text-faint); }

.article-h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.article-lead {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.author-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002211;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.author-bio {
    font-size: 12px;
    color: var(--text-muted);
}

/* TOC */
.toc {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 48px;
}

.toc-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 14px;
}

.toc ol {
    list-style: none;
    counter-reset: toc;
    padding: 0;
    margin: 0;
}

.toc li {
    counter-increment: toc;
    padding: 6px 0;
    padding-left: 32px;
    position: relative;
    font-size: 15px;
}

.toc li::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent);
    font-size: 13px;
}

.toc a {
    color: var(--text-secondary);
    transition: color 0.2s var(--ease);
}

.toc a:hover { color: var(--accent); }

/* Article body */
.article-body { font-size: 16px; line-height: 1.7; }

.article-body h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 48px 0 16px;
    color: var(--text-primary);
    line-height: 1.2;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text-primary);
}

.article-body h4 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-primary);
}

.article-body p {
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.article-body p strong { color: var(--text-primary); }

.article-body ul, .article-body ol {
    color: var(--text-secondary);
    margin-bottom: 18px;
    padding-left: 22px;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-body li strong { color: var(--text-primary); }

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(0, 255, 157, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s var(--ease);
}

.article-body a:hover {
    text-decoration-color: var(--accent);
}

.article-body code {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.9em;
    color: var(--accent);
}

.article-body hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 48px 0;
}

/* Server feature blocks */
.server-feature {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    padding: 28px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    transition: all 0.3s var(--ease);
}

.server-feature:hover {
    border-color: var(--border-accent);
    transform: translateX(4px);
}

.server-feature.compact {
    grid-template-columns: 60px 1fr;
    padding: 20px 24px;
    gap: 16px;
}

.server-feature-num {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.04em;
    align-self: start;
}

.server-feature.compact .server-feature-num { font-size: 36px; }

.server-feature-body h3 {
    margin-top: 0 !important;
}

.server-quick {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.server-quick code {
    font-family: var(--font-mono);
    background: rgba(0, 255, 157, 0.08);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.95em;
}

.server-pros-cons {
    font-size: 13px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    margin-bottom: 14px !important;
}

.server-feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
}

.server-feature-cta:hover {
    text-decoration: underline !important;
}

/* Mode grid */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.mode-card {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.mode-card:hover { border-color: var(--border-accent); }

.mode-card h4 { margin-bottom: 8px; }

.mode-card p {
    font-size: 13px !important;
    color: var(--text-secondary);
    margin-bottom: 8px !important;
}

.mode-card strong {
    font-size: 12px;
    color: var(--accent);
    display: block;
    margin-top: 8px;
}

/* FAQ */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 12px;
}

.faq-item h3 {
    margin: 0 0 8px !important;
    font-size: 17px !important;
    color: var(--text-primary);
}

.faq-item p {
    margin-bottom: 0 !important;
    font-size: 15px;
}

/* Related articles */
.related-articles { margin-top: 64px; }

.related-articles h2 {
    text-align: center;
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    text-align: center;
    text-decoration: none !important;
    color: inherit;
}

.related-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.related-icon { font-size: 32px; margin-bottom: 4px; }

.related-card strong {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 16px;
}

.related-card span:last-child {
    font-size: 13px;
    color: var(--text-muted);
}

/* Breadcrumb (re-use from serwer.css) */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
    text-decoration: none !important;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { color: var(--text-faint); }
.breadcrumb-current { color: var(--text-primary); }

@media (max-width: 700px) {
    .server-feature {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }
    .server-feature-num { font-size: 36px; }
}
