/* static/css/pages/articles-list.css */
/* Страница списка статей. */

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #EEF5FB;
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.articles-section {
    flex: 1;
    margin-bottom: 40px;
}

.articles-title {
    font-size: 32px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.12);
}

.article-card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #dce8f3;
    overflow: hidden;
}

.article-card-cover--placeholder {
    background: linear-gradient(135deg, #dce8f3 0%, #c5d9eb 100%);
}

.article-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card-body {
    padding: 20px;
}

.article-card-title {
    font-size: 20px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.articles-empty {
    font-size: 16px;
    color: #666;
}

@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    .articles-title {
        font-size: 26px;
    }

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