/* News Page Improvements - Professional Layout & Readability */

/* Article Cards - Premium Design */
.news-article {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-left: 4px solid #e74c3c;
    padding: 32px;
    margin-bottom: 28px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Titles - Clear Hierarchy */
.news-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* Metadata - Subtle but readable */
.news-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Summaries - Maximum Readability */
.news-summary {
    font-size: 17px;
    line-height: 1.8;
    color: #e0e0e0;
    max-width: 900px;
    margin-bottom: 20px;
}

.news-summary p {
    margin-bottom: 16px;
}

/* Read More Links - High Contrast */
.news-read-more {
    color: #3498db;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-read-more:hover {
    color: #2ecc71;
    text-decoration: underline;
}

/* Category Tags */
.news-category {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 12px;
}

/* Page Header */
.news-header {
    padding: 48px 0;
    text-align: center;
    border-bottom: 2px solid #333;
    margin-bottom: 40px;
}

.news-header h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.news-header p {
    font-size: 20px;
    color: #999;
    max-width: 700px;
    margin: 0 auto;
}

/* Container Spacing */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Loading State */
.news-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

/* Empty State */
.news-empty {
    text-align: center;
    padding: 80px 20px;
    background: #1a1a1a;
    border-radius: 16px;
    margin: 40px 0;
}

.news-empty h3 {
    font-size: 24px;
    color: #999;
    margin-bottom: 12px;
}

.news-empty p {
    font-size: 16px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-article {
        padding: 24px;
        margin-bottom: 20px;
    }

    .news-title {
        font-size: 24px;
    }

    .news-summary {
        font-size: 16px;
    }

    .news-header h1 {
        font-size: 36px;
    }
}

/* ===== NEWS/PRODUCT SUMMARY MODAL STYLES ===== */

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.98), rgba(20, 20, 30, 0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    color: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    padding: 0 0.5rem;
}

.close-modal:hover,
.close-modal:focus {
    color: #4a90e2;
    transform: scale(1.1);
}

#modal-body-content h2 {
    color: #ffffff;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(74, 144, 226, 0.5);
    padding-bottom: 0.75rem;
    font-size: 1.8em;
}

.article-meta {
    color: #aaa;
    font-size: 0.9em;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.article-meta span {
    margin-right: 1rem;
}

.article-body {
    line-height: 1.8;
    font-size: 1.05em;
    color: #e0e0e0;
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.article-body a:hover {
    color: #6eb0ff;
    text-decoration: underline;
}

/* Scrollbar styling for modal */
.glass-panel::-webkit-scrollbar {
    width: 8px;
}

.glass-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.glass-panel::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.5);
    border-radius: 4px;
}

.glass-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 226, 0.7);
}