body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #0f172a;
    color: #e2e8f0;
    box-sizing: border-box;
    line-height: 1.6;
}

h1, h2 {
    color: #f8fafc;
    text-align: center;
    letter-spacing: 0.5px;
}

h3 {
    color: #f8fafc;
    text-align: left;
    font-weight: 600;
}

.container {
    display: flex;
    justify-content: center;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .site-header {
        flex-direction: column;
        gap: 15px;
    }
    
    nav a {
        display: inline-block;
        margin: 5px;
        padding: 8px 12px;
        font-size: 1em;
    }
    
    .article {
        padding: 15px;
    }
    
    .article h3 {
        font-size: 1.2em;
    }
}

.article {
    background-color: #1e293b;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.article h3 {
    margin-bottom: 5px;
    font-family: 'Book Antiqua', serif;
}

.article h3 a {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article .meta-info {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    color: #94a3b8;
    font-size: 0.9em;
}

.article .date {
    display: flex;
    align-items: center;
    gap: 5px;
    text-align: left;
}

.article .source {
    display: flex;
    align-items: center;
    gap: 5px;
    text-align: right;
}

.article .keywords {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.article .keywords i {
    color: #3b82f6;
    font-size: 0.9em;
}

.keyword-tag {
    display: inline-block;
    background-color: #1e40af;
    color: #e0e7ff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #334155;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.8em;
    color: #3b82f6;
}

.logo h1 {
    margin: 0;
    font-size: 1.6em;
}

nav {
    text-align: center;
}

nav a {
    color: #e2e8f0;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.1em;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

nav a:hover {
    background-color: #334155;
    color: #f8fafc;
}

nav a.active {
    background-color: #3b82f6;
    color: white;
}

.article-footer {
    margin-top: 15px;
    text-align: right;
}

.read-more {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #60a5fa;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
}

.title-underline {
    height: 3px;
    width: 100px;
    background-color: #3b82f6;
    margin: 0 auto;
    border-radius: 3px;
}

.site-footer {
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9em;
    border-top: 1px solid #334155;
}

.stats-main {
    max-width: 1100px;
    margin: 0 auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 30px;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background-color: #1e293b;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.summary-card h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #94a3b8;
}

.summary-value {
    font-size: 2em;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.summary-detail {
    font-size: 0.85em;
    color: #94a3b8;
}

.stats-table-section {
    background-color: #1e293b;
    border-radius: 12px;
    border: 1px solid #334155;
    padding: 20px;
    margin-bottom: 30px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.stats-table th,
.stats-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #334155;
}

.stats-table th {
    background-color: #0f172a;
    color: #94a3b8;
    font-weight: 600;
}

.delta {
    font-weight: 600;
}

.delta-up {
    color: #10b981;
}

.delta-down {
    color: #ef4444;
}

.stats-chart-section {
    background-color: #1e293b;
    border-radius: 12px;
    border: 1px solid #334155;
    padding: 20px;
    min-height: 320px;
}

.stats-chart-section canvas {
    width: 100% !important;
    height: 260px !important;
}

.stats-live {
    background-color: #1e293b;
    border-radius: 12px;
    border: 1px solid #334155;
    padding: 20px;
    margin-bottom: 30px;
}

.stats-live h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
}

.stats-live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stats-live-card {
    background-color: #0f172a;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #334155;
}

.stats-live-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #94a3b8;
}

.stats-live-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-live-card li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #1e293b;
}

.stats-live-card li:last-child {
    border-bottom: none;
}

.stats-live-card span {
    color: #e2e8f0;
}

.stats-live-card strong {
    color: #3b82f6;
}

@media screen and (max-width: 768px) {
    .stats-live-grid {
        grid-template-columns: 1fr;
    }
    
    .keyword-tag {
        font-size: 0.75em;
        padding: 3px 8px;
    }
}