/* Kennisbank Begrip Article Styles */

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #FF6B6B;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #adb5bd;
}

.breadcrumb span:last-child {
    color: #495057;
    font-weight: 500;
}

/* Article Header */
.article-header {
    padding: 3rem 0 2rem;
    background: #f8f9fa;
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: #FFE5E5;
    color: #FF6B6B;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.article-tag:hover {
    background-color: #FF6B6B;
    color: white;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #6c757d;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-item svg {
    color: #FF6B6B;
}

/* Article Hero Image */
.article-hero {
    padding: 0 0 2rem;
}

.article-hero-image {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Body Layout */
.article-body {
    padding: 3rem 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Article Content */
.article-main-content {
    min-width: 0;
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2C3E50;
}

.article-text h2 {
    font-size: 1.8rem;
    color: #2C3E50;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FFE5E5;
}

.article-text h3 {
    font-size: 1.5rem;
    color: #2C3E50;
    margin: 2rem 0 1rem;
}

.article-text h4 {
    font-size: 1.3rem;
    color: #2C3E50;
    margin: 1.5rem 0 0.8rem;
}

.article-text p {
    margin-bottom: 1.5rem;
}

.article-text ul, .article-text ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-text li {
    margin-bottom: 0.8rem;
}

.article-text blockquote {
    border-left: 4px solid #FF6B6B;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #495057;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
}

.article-text a {
    color: #FF6B6B;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.article-text a:hover {
    border-bottom-color: #FF6B6B;
}

/* Internal links styling - voor automatische begrippen links */
.article-text a.internal-link {
    color: #FF6B6B;
    text-decoration: none;
    border-bottom: 1px dotted #FF6B6B;
    font-weight: 500;
    transition: all 0.2s;
}

.article-text a.internal-link:hover {
    color: #FF4757;
    border-bottom-style: solid;
    background-color: #FFF5F5;
    padding: 0 2px;
    border-radius: 2px;
}

.article-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-text strong {
    font-weight: 600;
    color: #2C3E50;
}

/* Highlight Box */
.highlight-box {
    background: #FFE5E5;
    border-left: 4px solid #FF6B6B;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box h4 {
    color: #FF6B6B;
    margin-top: 0;
}

/* Social Share */
.article-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.article-share h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2C3E50;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0a66c2;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.related-articles h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2C3E50;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-card-content {
    padding: 1.2rem;
}

.related-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2C3E50;
}

.related-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.8rem;
}

.related-card a {
    color: #FF6B6B;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.related-card a:hover {
    text-decoration: underline;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2C3E50;
}

/* Table of Contents */
.toc-widget nav {
    font-size: 0.9rem;
}

.toc-widget nav a {
    display: block;
    color: #6c757d;
    text-decoration: none;
    padding: 0.5rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.8rem;
    transition: all 0.2s;
}

.toc-widget nav a:hover,
.toc-widget nav a.active {
    color: #FF6B6B;
    border-left-color: #FF6B6B;
}

/* CTA Widget */
.cta-widget {
    background: #FF6B6B;
    color: white;
    text-align: center;
}

.cta-widget h3 {
    color: white;
}

.cta-widget p {
    margin-bottom: 1rem;
    opacity: 0.95;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Popular Articles */
.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.popular-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-list a {
    color: #2C3E50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    transition: color 0.2s;
}

.popular-list a:hover {
    color: #FF6B6B;
}

.popular-meta {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.3rem;
}

/* Newsletter Widget */
.newsletter-form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.newsletter-form-sidebar input {
    padding: 0.7rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
}

.btn-small {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
}

/* Article CTA Section */
.article-cta-section {
    background: #FF6B6B;
    padding: 4rem 0;
    margin-top: 3rem;
}

.cta-box {
    text-align: center;
    color: white;
}

.cta-box h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-excerpt {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 2rem 0 1rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-excerpt {
        font-size: 1rem;
    }

    .article-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .article-text {
        font-size: 1rem;
    }

    .article-text h2 {
        font-size: 1.5rem;
    }

    .article-text h3 {
        font-size: 1.3rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    .cta-box p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.5rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    .breadcrumb .separator {
        margin: 0 0.3rem;
    }
}

/* Hover Popup voor Internal Links */
.link-hover-popup {
    position: fixed;
    z-index: 10000;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    max-width: 300px;
    transform: translateX(-50%);
    pointer-events: none;
    animation: fadeIn 0.2s ease-in-out;
}

.link-hover-popup.above::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.link-hover-popup.below::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.popup-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-purple);
    margin-bottom: 6px;
}

.popup-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Internal Link Styling */
a.internal-link {
    color: var(--primary-purple);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

a.internal-link:hover {
    color: var(--accent-coral);
    text-decoration-style: solid;
}

/* Gerelateerde artikelen: compacte regels met kleine foto */
.related-articles h2 { margin: 0 0 16px; color: #1f2a3c; font-size: 22px; text-align: left; }
.related-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; gap: 12px !important; }
.related-grid .related-card { display: flex !important; gap: 12px; align-items: center; padding: 10px !important; overflow: hidden; border: 1px solid #e2e5ea !important; border-radius: 8px !important; background: #fff !important; box-shadow: none !important; color: #1f2a3c !important; text-decoration: none !important; transform: none !important; transition: border-color 0.15s ease; }
.related-grid .related-card:hover, .related-grid .related-card:focus-visible { border-color: #5f4da6 !important; }
.related-grid .related-card img { flex: none; width: 96px !important; height: 72px !important; border-radius: 8px; object-fit: cover; }
.related-grid .related-card h3 { margin: 0 !important; color: inherit !important; font-size: 15px !important; font-weight: 600; line-height: 1.35 !important; text-align: left; text-decoration: none; }
.article-thema { display: inline-block; padding: 4px 10px; border: 1px solid #d9d5ea; border-radius: 8px; background: #fff; color: #4f3f8f; font-size: 14px; font-weight: 600; text-decoration: none; }
.article-meta { justify-content: flex-start; }
.article-header-content { max-width: 800px; margin-left: 0; text-align: left; }
.article-header-content h1, .article-excerpt { text-align: left; }

/* Inhoudsopgave: tussenkoppen inspringen */
#table-of-contents a.toc-sub { padding-left: 1.5rem; }

/* Tabellen in artikelen (tarieven, minimumloon). Op mobiel horizontaal scrollen. */
.kb-tabel { margin: 16px 0 8px; overflow-x: auto; border: 1px solid #e2e5ea; border-radius: 8px; }
.kb-tabel table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; }
.kb-tabel caption { padding: 12px 16px; color: #1f2a3c; font-weight: 700; text-align: left; caption-side: top; }
.kb-tabel th, .kb-tabel td { padding: 10px 16px; border-top: 1px solid #e2e5ea; text-align: left; vertical-align: top; }
.kb-tabel thead th { background: #f7f5fc; color: #4f3f8f; font-size: 14px; }
.kb-tabel tbody th { font-weight: 600; }
.kb-tabel td { font-variant-numeric: tabular-nums; }
.kb-tabel__noot { margin-top: 0; color: #5b6778; font-size: 14px; }
