﻿/* ============================================
   AD WEBSITE - ARTICLE STYLES
   Article content, images, captions
   ============================================ */

/* ============================================
   ARTICLE BASICS
   ============================================ */

.article-content h2
{
    font-size: 24px;
    color: rgb(204, 51, 51);
    font-weight: bold;
}

.article-content h3
{
    font-size: 24px;
    color: #333;
}

.article-content h4
{
    font-size: 22px;
    color: #333;
}

/* Brieven auteur styling — italic + indented */
.vsi-brieven-auteur
{
    padding-left: 24px;
    font-style: italic;
    margin-top: 4px;
    margin-bottom: 12px;
}

.article-content a,
.vsi-readmore a
{
    color: rgb(204, 51, 51);
    text-decoration: none;
    font-weight: 500;
}

.article-publishdate
{
    font-size: 10px;
    color: #666666;
}

.article-content .linebreak
{
    margin-bottom: 0px;
}

.article-content p
{
    margin-bottom: 1.2rem;
    display: block;
}

.article-content em
{
    /* This is Italic */
    /* display: block;*/
}

.article-footer-text
{
    font-size: 12px;
    color: #666666;
}

.article-footer-link
{
    font-size: 12px;
    color: rgb(204, 51, 51);
    text-decoration: none;
    font-weight: 500;
}

.article-separator
{
    border-top: 1px solid #666;
    margin: 20px 0;
    clear: both;
}

.article-readmore
{
    font-size: 23px;
    font-weight: bold;
    color: #333;
}

.article-readmore a
{
    font-size: 23px;
    font-weight: bold;
    color: rgb(204, 51, 51);
}

/* ============================================
   ARTICLE IMAGES - Desktop default (8px border-radius)
   Only applies inside .article-body and .article-intro
   ============================================ */

.article-body .article-image,
.article-intro .article-image
{
    display: table;
    margin: 10px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.article-body .article-image.center,
.article-intro .article-image.center
{
    float: none;
    clear: both;
    margin: 10px auto;
    max-width: 100%;
    text-align: center;
    border-radius: 8px;
}

.article-body .article-image.left,
.article-intro .article-image.left
{
    float: left;
    margin: 10px 20px 10px 0;
    border-radius: 8px;
}

.article-body .article-image.right,
.article-intro .article-image.right
{
    float: right;
    margin: 10px 0 10px 20px;
    border-radius: 8px;
}

.article-body .article-image img,
.article-intro .article-image img
{
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

.article-body .article-image.center img,
.article-intro .article-image.center img
{
    margin: 0 auto;
    border-radius: 8px;
}

.article-body .article-image .image-caption,
.article-intro .article-image .image-caption
{
    font-style: italic;
    color: #666;
    margin-top: 8px;
    font-size: 0.9em;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.article-body .article-image.center .image-caption,
.article-intro .article-image.center .image-caption
{
    text-align: center;
}

/* Clear floats after content sections */
.article-body::after,
.article-intro::after
{
    content: "";
    display: table;
    clear: both;
}

/* Ensure paragraphs flow around floated images - DESKTOP ONLY */
@media (min-width: 768px)
{
    .article-body p,
    .article-intro p
    {
        margin-bottom: 1.2rem;
    }

    .article-body br,
    .article-intro br
    {
        display: block;
        line-height: 2.5em;
    }
}

.ad-article-search .blue-wave-banner
{
    margin-top: 15px !important;
    margin-bottom: 0px !important;
}

/* ============================================
   PRINT BUTTON (rendered inside the share button row on the article page,
   via the AdditionalButtons fragment of ShareButtons — so it lines up with
   the share icons instead of being centred against the whole share block)
   ============================================ */
.article-print-btn
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background-color: #555;
    font-size: 1.1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 0;
}

.article-print-btn:hover
{
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background-color: #333;
    color: #fff;
}

.article-print-btn:active
{
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.article-print-btn:focus-visible
{
    outline: 3px solid rgb(204, 51, 51);
    outline-offset: 2px;
}

@media (max-width: 1024px)
{
    .article-print-btn
    {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
}

@media (max-width: 768px)
{
    .article-print-btn
    {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    .article-print-btn:hover
    {
        transform: none;
    }

    .article-print-btn:active
    {
        transform: scale(0.92);
    }
}

/* Keep in sync with the .share-btn breakpoints in ShareButtons.razor.css */
@media (max-width: 360px)
{
    .article-print-btn
    {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ============================================
   PRINT-ONLY ELEMENTS (header + footer for printout)
   Hidden on screen, only visible in @media print.
   ============================================ */
.print-only
{
    display: none !important;
}

/* ============================================
   PRINT STYLES
   Layout: AD logo top-left, article info top-right, article body,
   then copyright footer + print date at the bottom.
   ============================================ */
@media print
{
    @page
    {
        margin: 1.5cm 1.5cm 1.5cm 1.5cm;
    }

    /* Show the print-only blocks */
    .print-only
    {
        display: block !important;
    }

    /* Hide all chrome that should not appear in the printout */
    .ad-header,
    .ad-footer,
    .article-sidebar-column,
    .article-share-section,
    .article-tags-section,
    .blue-wave-banner,
    .ad-loading-overlay,
    [class*="advertisement"],
    [class*="-advertisement"],
    .vsi-toast-container,
    .ad-cookie-banner,
    .telerik-blazor
    {
        display: none !important;
    }

    /* Reset any column/grid widths that might constrain the article on paper */
    body,
    .ad-container-wrapper,
    .ad-container,
    .ad-row,
    .ad-col,
    .row,
    .col-12,
    .col-lg-9
    {
        background: #fff !important;
        color: #000 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    /* Print header — flex row with logo left, info right */
    .article-print-header
    {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
        padding-bottom: 8px;
        margin-bottom: 16px;
        border-bottom: 2px solid rgb(204, 51, 51);
    }

    .article-print-header .print-header-logo img
    {
        height: 60px;
        width: auto;
        max-width: 240px;
    }

    .article-print-header .print-header-info
    {
        text-align: right;
        font-size: 0.85rem;
        color: #333 !important;
    }

    .article-print-header .print-header-source
    {
        font-weight: bold;
        font-size: 0.95rem;
        margin-bottom: 2px;
    }

    .article-print-header .print-header-date
    {
        color: #555 !important;
    }

    /* Print footer — copyright text + print date, small font */
    .article-print-footer
    {
        margin-top: 24px;
        padding-top: 10px;
        border-top: 1px solid #999;
        font-size: 0.7rem;
        color: #555 !important;
        text-align: center;
        line-height: 1.4;
    }

    .article-print-footer .print-footer-copyright
    {
        margin-bottom: 4px;
    }

    .article-print-footer .print-footer-date
    {
        font-style: italic;
    }

    /* Article-specific print tweaks: full text, no shadows, links readable */
    .article-content-wrapper
    {
        box-shadow: none !important;
        background: #fff !important;
    }

    .article-body,
    .article-intro
    {
        color: #000 !important;
    }

    .article-body a,
    .article-intro a
    {
        color: #000 !important;
        text-decoration: underline;
    }

    /* Avoid awkward breaks */
    .article-image,
    .article-body img,
    .article-intro img
    {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .article-title,
    h1,
    h2,
    h3
    {
        page-break-after: avoid;
        break-after: avoid;
    }

    .article-print-footer
    {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

