/* ============================================
   BLOG STYLES
   ============================================ */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    padding: 120px 20px 80px;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.blog-header-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-header-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Section */
.blog-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Filters */
.blog-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #FF6B00;
    color: #FF6B00;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #FF6B00;
    border-color: #FF6B00;
    color: white;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    padding: 6px 12px;
    background: #FFF4ED;
    color: #FF6B00;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.blog-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #888;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-views {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Blog Loading */
.blog-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #FF6B00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #FF6B00;
    color: #FF6B00;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #FF6B00;
    border-color: #FF6B00;
    color: white;
}

.pagination-info {
    color: #666;
    font-size: 0.95rem;
}

/* ============================================
   BLOG POST PAGE STYLES
   ============================================ */

.blog-post-container {
    max-width: 900px;
    margin: 80px auto 0;
    padding: 40px 20px 60px;
}

.blog-post-loading,
.blog-post-error {
    text-align: center;
    padding: 100px 20px;
}

.blog-post-error h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #333;
}

.blog-post-error p {
    color: #666;
    margin-bottom: 24px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #FF6B00;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

/* Post Header */
.post-header {
    margin-bottom: 40px;
}

.post-category {
    display: inline-block;
    padding: 8px 16px;
    background: #FFF4ED;
    color: #FF6B00;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.post-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.post-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #888;
    font-size: 0.95rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Featured Image */
.post-featured-image {
    width: 100%;
    max-height: 500px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Body */
.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.post-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #1a1a1a;
}

.post-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 16px;
    color: #1a1a1a;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body ul, .post-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body a {
    color: #FF6B00;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.post-body a:hover {
    opacity: 0.7;
}

.post-body strong {
    font-weight: 600;
    color: #1a1a1a;
}

.post-body blockquote {
    border-left: 4px solid #FF6B00;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

/* Post Tags */
.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

.post-tag {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #666;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: #FF6B00;
    color: white;
}

/* Related Articles */
.related-articles {
    margin-bottom: 60px;
}

.related-articles h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
}

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

/* Post CTA */
.post-cta {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    color: white;
}

.post-cta h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.post-cta p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    opacity: 0.95;
}

.post-cta .btn-primary {
    background: white;
    color: #FF6B00;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.post-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header {
        padding: 100px 20px 60px;
    }

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

    .blog-header-content p {
        font-size: 1rem;
    }

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

    .blog-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .post-body {
        font-size: 1rem;
    }

    .post-body h2 {
        font-size: 1.5rem;
    }

    .post-body h3 {
        font-size: 1.2rem;
    }

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

    .post-cta {
        padding: 30px 20px;
    }

    .post-cta h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   COMPARISON TABLES (HTML Tables in Blog Content)
   ============================================ */

.comparison-table {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 25px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden; /* Zorgt dat de hoeken rond blijven */
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

.comparison-table thead tr {
    background-color: #FF6B00; /* Oranje huisstijl */
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.comparison-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.comparison-table tbody tr:last-of-type {
    border-bottom: 2px solid #FF6B00; /* Zelfde kleur als header */
}

.comparison-table tbody tr:hover {
    background-color: #f1f1f1;
    color: #FF6B00;
    font-weight: bold;
    cursor: default;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .comparison-table table {
        min-width: 100%;
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
    }
}

/* ============================================
   ENHANCED HEADING HIERARCHY
   ============================================ */

/* H2 - Main section headers */
.post-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    margin: 48px 0 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #FF6B00;
    color: #1a1a1a;
    line-height: 1.3;
}

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

/* H3 - Subsection headers */
.post-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
    margin: 36px 0 18px;
    color: #2a2a2a;
    line-height: 1.4;
    position: relative;
    padding-left: 16px;
}

.post-body h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: #FF6B00;
    border-radius: 2px;
}

/* H4 - Sub-subsection headers (FAQ questions, etc.) */
.post-body h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 28px 0 14px;
    color: #333;
    line-height: 1.4;
}

/* ============================================
   FAQ SECTION STYLING
   ============================================ */

/* FAQ Questions as H3 */
.post-body h3[id*="vraag"],
.post-body h3:has(+ p > strong:first-child) {
    background: linear-gradient(135deg, #FFF8F4 0%, #FFEFE6 100%);
    padding: 16px 20px 16px 20px;
    margin: 24px 0 12px;
    border-radius: 8px;
    border-left: 4px solid #FF6B00;
}

.post-body h3[id*="vraag"]::before,
.post-body h3:has(+ p > strong:first-child)::before {
    display: none;
}

/* ============================================
   DO'S AND DON'TS LISTS
   ============================================ */

.post-body ul:has(.do-item),
.post-body ul:has(.dont-item) {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.post-body .do-item {
    background: linear-gradient(135deg, #f0fff4 0%, #dcffe4 100%);
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid #22c55e;
    list-style: none;
}

.post-body .dont-item {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e4 100%);
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    list-style: none;
}

/* ============================================
   DIRECT ANSWER BOX
   ============================================ */

.post-body p > strong:first-child:only-child,
.post-body p:has(> strong:first-child:contains("DIRECT ANSWER")) {
    background: linear-gradient(135deg, #FFF4ED 0%, #FFE8D9 100%);
    padding: 20px 24px;
    border-radius: 12px;
    border-left: 5px solid #FF6B00;
    margin: 20px 0;
    display: block;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ============================================
   ENHANCED LIST STYLING
   ============================================ */

.post-body ul {
    margin: 20px 0;
    padding-left: 0;
}

.post-body ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    list-style: none;
}

.post-body ul li::before {
    content: '●';
    position: absolute;
    left: 8px;
    color: #FF6B00;
    font-size: 0.7em;
    top: 6px;
}

.post-body ol {
    margin: 20px 0;
    padding-left: 0;
    counter-reset: list-counter;
}

.post-body ol li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    list-style: none;
    counter-increment: list-counter;
}

.post-body ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: #FF6B00;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================
   HORIZONTAL RULE STYLING
   ============================================ */

.post-body hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF6B00, transparent);
    margin: 48px 0;
}

/* ============================================
   READING PROGRESS INDICATOR
   ============================================ */

.reading-progress {
    position: fixed;
    top: 60px;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #FF6B00, #FF8533);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* ============================================
   TABLE OF CONTENTS STYLING
   ============================================ */

.table-of-contents {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin: 30px 0;
}

.table-of-contents h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.table-of-contents ul {
    margin: 0;
    padding-left: 0;
}

.table-of-contents li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.table-of-contents li:last-child {
    border-bottom: none;
}

.table-of-contents a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.table-of-contents a:hover {
    color: #FF6B00;
}

/* ============================================
   BLOCKQUOTE / EXPERT TIPS
   ============================================ */

.post-body blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f2 100%);
    border-left: 5px solid #FF6B00;
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
    font-style: normal;
    position: relative;
}

.post-body blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #FF6B00;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 16px;
    font-family: Georgia, serif;
}

.post-body blockquote p {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ============================================
   CODE/TIP BOXES
   ============================================ */

.post-body code {
    background: #f1f1f1;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .post-body h2 {
        page-break-after: avoid;
        border-bottom-color: #000;
    }

    .post-body h3 {
        page-break-after: avoid;
    }

    .comparison-table {
        box-shadow: none;
        border: 1px solid #000;
    }
}
