/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Navigation */
.top-nav {
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
    margin-bottom: 3rem;
}

.top-nav a {
    display: inline-block;
    margin: 0 1rem;
    padding: 0.25rem 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.top-nav a:hover {
    color: #e74c3c;
}

.top-nav a.active {
    color: #e74c3c;
    font-weight: 600;
}

/* Main content */
main {
    min-height: calc(100vh - 120px);
}

/* Articles grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Article card */
.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #ecf0f1;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.article-title a:hover {
    color: #e74c3c;
}

.article-summary {
    color: #555;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
    font-size: 0.9rem;
}

.article-meta time {
    color: #7f8c8d;
    font-weight: 500;
}

.read-more {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.read-more:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* Archive date sections */
.archive-date-section {
    margin-bottom: 3rem;
}

.archive-date-header {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e74c3c;
}

/* Empty state */
.empty-state {
    background: #fff;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-state p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.empty-state-hint {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .top-nav a {
        margin: 0 0.5rem;
        font-size: 0.85rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    main {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .top-nav a {
        margin: 0 0.3rem;
    }
}
