﻿/* Enhanced articles.css with integrated styling */

/* Articles page styles */
.articles-page {
    padding: 2rem 0;
}

    .articles-page h1 {
        margin-bottom: 2rem;
        font-size: 2.5rem;
        font-weight: 700;
    }

.articles-filters {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 4px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

    .filter-group label {
        font-weight: 500;
    }

    .filter-group select {
        padding: 0.5rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: #fff;
    }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Enhanced tag styling */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    background-color: #f0f0f0;
    border-radius: 3px;
    color: #555;
    transition: background-color 0.2s ease;
}

    .tag:hover {
        background-color: #e0e0e0;
    }

/* Article page styles with enhanced padding and narrowed content */
.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    overflow-y: auto;
    height: 100%;
}

/* Article container - similar to about page structure */
.article-container {
    max-width: 60%;
    margin: 0 auto;
    position: relative;
    padding: 0 30px;
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #333;
    padding-bottom: 1.5rem;
}

    .article-header h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

/* Enhanced article meta with improved formatting */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

    .article-meta .date,
    .article-meta .reading-time {
        color: #777;
    }

/* Article categories styling */
.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.category {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background-color: #f0f0f0;
    border-radius: 3px;
    color: #555;
    transition: background-color 0.2s ease;
}

    .category:hover {
        background-color: #e0e0e0;
    }

.article-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Enhanced padding for article content - keep existing padding but within narrower container */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 0 20px; /* Reduced from 30px to work with narrower container */
}

    /* Article intro styling */
    .article-content .article-intro {
        font-size: 1.15rem;
        color: #555;
        margin-bottom: 2rem;
        border-left: 3px solid rgba(0, 119, 181, 0.3);
        padding-left: 1rem;
    }

    .article-content p {
        margin-bottom: 1.5rem;
        text-align: justify;
    }

    .article-content h2 {
        margin: 2.5rem 0 1rem;
        font-size: 1.8rem;
        color: #222;
    }

    .article-content h3 {
        margin: 2rem 0 1rem;
        font-size: 1.5rem;
        color: #444;
    }

    .article-content ul, .article-content ol {
        margin-bottom: 1.5rem;
        padding-left: 2rem;
    }

    .article-content li {
        margin-bottom: 0.8rem;
    }

    .article-content pre {
        background-color: #f8f8f8;
        padding: 1rem;
        border-radius: 4px;
        overflow-x: auto;
        margin-bottom: 1.5rem;
    }

    .article-content blockquote {
        border-left: 4px solid #ddd;
        padding-left: 1rem;
        color: #555;
        margin-bottom: 1.5rem;
    }

/* Quote box styling for highlighted quotes */
.quote-box {
    background: #f9f9f9;
    border-left: 4px solid #333;
    padding: 1.5rem;
    margin: 2rem 0;
}

    .quote-box blockquote {
        margin: 0;
        font-size: 1.1rem;
        border-left: none;
        padding-left: 0;
        color: #333;
    }

/* Results table styling */
.chart-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 4px;
}

.chart-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fff;
}

    .results-table th,
    .results-table td {
        padding: 0.8rem;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .results-table th {
        background: #f5f5f5;
        font-weight: 600;
        color: #333;
    }

    .results-table tr:hover {
        background: #fafafa;
    }

/* Special styling for case study lists */
.case-study-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

    .case-study-list li {
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid #eee;
        font-family: 'Courier New', monospace;
        font-size: 0.95rem;
        color: #666;
    }

        .case-study-list li:last-child {
            border-bottom: none;
        }

/* Author section */
.article-author {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

    .article-author h3 {
        margin-top: 0;
        margin-bottom: 1rem;
    }

/* Related articles section */
.related-articles {
    margin-top: 4rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 4px;
    border-top: none;
}

    .related-articles h3 {
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
        margin-top: 0;
    }

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-article {
    margin: 0.8rem 0;
}

    .related-article h4 {
        margin: 0 0 0.3rem 0;
        font-size: 1.1rem;
    }

    .related-article a {
        color: #0066cc;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .related-article a:hover {
            color: #0052a3;
            text-decoration: underline;
        }

    .related-article .date {
        color: #888;
        font-size: 0.85rem;
    }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .article-container {
        max-width: 80%;
    }
}

@media (max-width: 992px) {
    .article-container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-container {
        max-width: 95%;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 0 15px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .article-content p {
        text-align: left;
    }
}