/* News Article View Styling */

.news-article {
    background-color: var(--color-translucent-background);
    border-radius: 10px;
    padding: 40px 30px;
    margin: auto;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    color: var(--color-text);
    line-height: 1.8;
    backdrop-filter: blur(12px);
    font-size: 1.1rem;
    border-left: 5px solid var(--color-accent);
}

.news-article header {
    margin-bottom: 30px;
    text-align: left;
}

.news-article .title {
    font-size: 2.5rem;
    font-family: 'Oxanium', sans-serif;
    color: var(--color-highlight);
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px rgba(255, 191, 30, 0.6);
    line-height: 1.2;
}

.meta-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 4px 0;
    font-style: italic;
}

#author {
    color: var(--color-link);
}

h1 {
    font-size: 2rem;
}

ul {
   list-style-type: initial;
}

/* Style for lists */
ul, ol {
    padding-left: 1.5em;
    margin: 1em 0;
}

li {
    margin: 0.4em 0;
}

/* Style nested lists */
li ul, li ol {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
    padding-left: 1.5em;
    list-style-type: circle; /* For nested ul: circles instead of default discs */
}

li ol {
    list-style-type: lower-roman; /* For nested ol: roman numerals */
}

/* Optional: Differentiate deeper nesting visually */
li li ul, li li ol {
    list-style-type: square; /* Deeper ul gets squares */
    padding-left: 1.5em;
}

.article-body h1 { font-size: 2rem; }
.article-body h2 { font-size: 1.75rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.3rem; }
.article-body h5 { font-size: 1.1rem; }
.article-body h6 { font-size: 0.85rem;
    margin-top: -0.8rem !important;
    color: var(--color-text-dim);
}

.article-body hr {
    margin-top: 1.5em;
    margin-bottom: 1.5rem;
}

#tags {
    font-size: 12px;
    margin-top: 12px;
}

/* Tag Styling - Updated to match news.css */
#tags span {
    font-size: 12px;
    font-weight: bold;
    color: var(--color-primary);
    background-color: var(--lighter-gray);
    padding: 5px 10px;
    border-radius: 15px;
    margin-right: 10px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}

.article-body {
    text-align: left;
    padding-top: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.article-body p {
    white-space: pre-wrap;
}

#article-content pre,
#article-content code {
}

.article-body li {
    margin: 0;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6,
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre,
.article-body table {
    margin-top: 1rem;
    margin-bottom: 1rem;
}


/* Share Button */
.share-button {
    display: block;
    margin: 3rem auto 0;
    padding: 12px 25px;
    font-size: 0.8em;
    background-color: var(--color-primary);
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Oxanium', sans-serif;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.share-button:hover {
    background-color: var(--color-secondary);
    transform: scale(1.05);
    color: #fff;
}


/* Responsive */
@media (max-width: 768px) {
    .news-article {
        padding: 25px 20px;
        margin: 2.5rem auto;
    }

    .news-article .title {
        font-size: 2rem;
    }

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

    .meta-info {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-article {
        padding: 20px 15px;
    }

    .news-article .title {
        font-size: 1.6rem;
    }

    .share-button {
        width: 100%;
        padding: 14px 0;
        font-size: 0.9rem;
    }
}