﻿/* ================================================
   CONTEMPORARY NEWS ARTICLE STYLES
   ================================================ */

/* Hero Section */
.news-article-hero {
    position: relative;
    min-height: 70vh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    margin-top: -10vh;
    margin-bottom: var(--s5);
}

.news-article-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

    .news-article-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(70%);
    }

.news-article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 50%, light-dark(rgba(255, 255, 255, 0.95), rgba(20, 20, 20, 0.95)) 100%);
}

.news-article-hero-content {
    position: relative;
    z-index: 2;
    width: 90vw;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: var(--s4);
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.news-article-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-article-date {
    font-size: var(--s0);
    font-weight: 600;
    color: var(--color-motion-orange);
    letter-spacing: 0.1em;
}

    .news-article-date time {
        margin-bottom: 1rem;
    }

.news-article-tags-inline {
    display: flex;
    gap: var(--s-1);
    flex-wrap: wrap;
}

.news-article-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: var(--s-1);
    font-weight: 500;
    background: light-dark(rgba(232, 111, 58, 0.1), rgba(232, 111, 58, 0.2));
    color: var(--color-motion-orange);
    border: 1px solid var(--color-motion-orange);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}


.news-article-title {
    font-size: clamp(var(--s3), 5vw, var(--s5));
    font-weight: 900;
    line-height: 1.2;
    color: light-dark(var(--color-motion-grey), var(--color-light));
    margin: 0;
    text-shadow: light-dark(none, 2px 2px 4px rgba(0, 0, 0, 0.5));
}

.news-article-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-motion-orange) 0%, transparent 100%);
    border-radius: 2px;
}

/* Article Content */
.news-article-content {
    width: 90vw;
    max-width: 900px;
    margin: 0 auto var(--s5) auto;
}

.news-article-body {
    font-size: var(--s1);
    line-height: 1.8;
    color: light-dark(var(--color-motion-grey), var(--color-light));
}

    .news-article-body > * + * {
        margin-block-start: var(--prose-flow, 1em);
    }

    .news-article-body h2 {
        font-size: var(--s3);
        font-weight: 900;
        margin-top: var(--s4);
        margin-bottom: var(--s2);
        color: light-dark(var(--color-motion-grey), var(--color-light));
    }

    .news-article-body h3 {
        font-size: var(--s2);
        font-weight: 900;
        margin-top: var(--s3);
        margin-bottom: var(--s1);
        color: light-dark(var(--color-motion-grey), var(--color-light));
    }

    .news-article-body p {
        margin-bottom: var(--s2);
        max-width: 65ch;
    }

    .news-article-body img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        margin: var(--s3) 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .news-article-body blockquote {
        border-left: 4px solid var(--color-motion-orange);
        padding-left: var(--s2);
        margin: var(--s3) 0;
        font-size: var(--s1);
        font-style: italic;
        color: var(--color-motion-orange);
        opacity: 0.9;
    }

        /*
.news-article-body blockquote {
    clear: both;
    margin: 0 auto;
    margin-block: var(--s5);
    margin-inline: 0;
    padding: 0;
    column-span: all;
    column-span: all;
    margin-block: var(--s4);
    border-left: 4px solid var(--color-motion-orange);
}

.news-article-body blockquote p {
    line-height: 1.2;
    font-style: italic;
    margin: 0 auto;
    color: var(--color-motion-orange);
}

*/

        .news-article-body blockquote cite {
            color: light-dark(var(--color-motion-grey), var(--color-light));
            display: block;
            font-style: normal;
            margin-top: var(--s-2);
            font-size: var(--s-1);
            font-weight: 600;
        }


    .news-article-body a {
        color: light-dark(var(--color-motion-teal), var(--color-motion-light-blue));
        text-decoration: underline;
        text-underline-offset: 0.4rem;
    }

        .news-article-body a:hover {
            background-color: var(--color-link-hover-bg);
            color: var(--color-light);
            text-decoration-color: var(--color-link-hover-bg);
        }


    .news-article-body ul,
    .news-article-body ol {
        margin: var(--s2) 0;
        padding-left: var(--s3);
    }

    .news-article-body li {
        margin-bottom: var(--s0);
    }

    .news-article-body hr {
        width: 90%;
        margin-block: 3vh;
    }

/* Related Content Section */
.news-article-related {
    background: light-dark( linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%), linear-gradient(135deg, var(--color-motion-grey) 0%, #1a1a1a 100%) );
    padding: var(--s5) 0;
    margin: var(--s5) 0;
    position: relative;
}

    .news-article-related::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, var(--color-motion-orange) 50%, transparent 100%);
    }

.news-article-related-header {
    width: 90vw;
    max-width: var(--grid-max);
    margin: 0 auto var(--s4) auto;
    text-align: center;
}

    .news-article-related-header h2 {
        font-size: var(--s3);
        font-weight: 700;
        margin: 0 0 var(--s1) 0;
        color: light-dark(var(--color-motion-grey), var(--color-light));
    }

.news-article-related-divider {
    width: 80px;
    height: 4px;
    background: var(--color-motion-orange);
    margin: 0 auto;
    border-radius: 2px;
}

.news-article-related-grid {
    width: 90vw;
    max-width: var(--grid-max);
    margin: 0 auto;
}

/* CTA Section */
.news-article-cta {
    background: light-dark(#ffffff, var(--color-motion-grey));
    padding: var(--s4) 0;
    text-align: center;
}

.news-article-cta-content {
    width: 90vw;
    max-width: 900px;
    margin: 0 auto;
}

.news-article-cta .linkbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Reading Progress Bar */
.news-article-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-motion-orange);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Share Buttons (Optional Enhancement) */
.news-article-share {
    position: sticky;
    top: 20vh;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s0);
    padding: var(--s1);
}

.news-article-share-button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: light-dark(#ffffff, var(--color-motion-grey));
    border: 1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .news-article-share-button:hover {
        background: var(--color-motion-orange);
        transform: scale(1.1);
    }

    .news-article-share-button svg {
        width: 20px;
        height: 20px;
        stroke: light-dark(var(--color-motion-grey), var(--color-light));
    }

    .news-article-share-button:hover svg {
        stroke: var(--color-light);
    }

/* Responsive Design */
@media (max-width: 1024px) {
    .news-article-hero {
        min-height: 60vh;
    }

    .news-article-title {
        font-size: var(--s3);
    }

    .news-article-share {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: var(--s3);
    }
}

@media (max-width: 768px) {
    .news-article-hero {
        min-height: 50vh;
        margin-bottom: var(--s3);
    }

    .news-article-hero-content {
        padding-bottom: var(--s2);
    }

    .news-article-title {
        font-size: var(--s2);
    }

    .news-article-body {
        font-size: var(--s0);
    }

    .news-article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-article-related {
        padding: var(--s3) 0;
    }
}

@media (max-width: 480px) {
    .news-article-hero-content {
        /*gap: var(--s1);*/
        gap: 0em;
    }

    .news-article-cta .linkbutton {
        width: 100%;
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .news-article-tag,
    .news-article-share-button,
    .news-article-hero-image img {
        transition: none;
    }
}

/* Dark Mode Specific Adjustments */
@media (prefers-color-scheme: dark) {
    .news-article-hero-image img {
        filter: brightness(60%);
    }
}

/* Print Styles */
@media print {
    .news-article-hero-image {
        position: static;
        max-height: 300px;
    }

    .news-article-hero-overlay {
        display: none;
    }

    .news-article-cta,
    .news-article-share {
        display: none;
    }
}
