/* ========================================
   AIXPERTZ - Pages Stylesheet
   Shared styles for cluster/article pages
   ======================================== */

/* Breadcrumb */
.breadcrumb-bar {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-top: 80px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.breadcrumb li::after {
    content: "›";
    margin-left: 0.5rem;
    color: var(--text-muted);
}
.breadcrumb li:last-child::after {
    content: "";
}
.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.breadcrumb a:hover {
    color: var(--accent-primary);
}
.breadcrumb li[aria-current="page"] {
    color: var(--text-primary);
}

/* Article Hero */
.article-hero {
    padding: 4rem 0 3rem;
    text-align: center;
}
.article-hero .section-label {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}
.article-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.article-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}
.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Table of Contents */
.toc-section {
    padding: 0 0 2rem;
}
.toc-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
}
.toc-box h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.toc-box ol {
    list-style: decimal;
    padding-left: 1.5rem;
}
.toc-box li {
    margin-bottom: 0.5rem;
}
.toc-box a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.toc-box a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Article Content */
.article-content {
    padding: 2rem 0 4rem;
}
.container-narrow {
    max-width: 820px;
    margin: 0 auto;
}
.article-content section {
    margin-bottom: 3rem;
}
.article-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}
.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}
.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.article-content ul,
.article-content ol.numbered-list {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
}
.article-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.article-content a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}
.article-content a:hover {
    border-bottom-color: var(--accent-primary);
}

/* Comparison Tables */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.comparison-table thead {
    background: var(--bg-tertiary);
}
.comparison-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}
.comparison-table td {
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.6;
}
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}
.comparison-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.03);
}
.comparison-table td strong {
    color: var(--text-primary);
}

/* CTA Box */
.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
}
.cta-box h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.cta-box p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-size: 1rem;
}

/* Related Pages Grid */
.related-pages {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}
.related-pages h2 {
    text-align: center;
    margin-bottom: 2rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.related-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-decoration: none;
    transition: all var(--transition-normal);
}
.related-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.related-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.related-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Numbered List */
ol.numbered-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}
ol.numbered-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
}
ol.numbered-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.8rem;
    height: 1.8rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Social Share Bar */
.share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.share-bar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}
.share-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.share-btn-copied {
    position: relative;
}
.share-btn-copied::after {
    content: "Copied!";
    position: absolute;
    bottom: -1.75rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--accent-primary);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}
.share-btn-copied.show-tooltip::after {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-hero {
        padding: 2.5rem 0 2rem;
    }
    .article-title {
        font-size: 1.8rem;
    }
    .article-lead {
        font-size: 1rem;
    }
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
    .toc-box {
        padding: 1.5rem;
    }
    .cta-box {
        padding: 1.5rem;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .breadcrumb {
        font-size: 0.8rem;
    }
}
