/* ========== Страница новостей ========== */

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

.section-games-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.section-games-title p {
    color: #888;
    font-size: 14px;
}

/* Сетка */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* Карточка */
.news-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #2a2a2a;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: #ffb50e;
}

.news-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Картинка */
.news-card-img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-card-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-card:hover .news-card-img > img {
    transform: scale(1.05);
}

/* Тег */
.news-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: rgba(0,0,0,0.7);
    border-radius: 8px;
    padding: 6px;
    backdrop-filter: blur(4px);
}

.news-card-tag img {
    width: 20px;
    height: 20px;
    display: block;
}

/* Контент */
.news-card-content {
    padding: 16px 18px 20px;
}

.news-card-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.4;
}

.news-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.news-card-content p {
    font-size: 13px;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}

/* Кнопка */
.load-more-container {
    text-align: center;
    margin: 25px 0;
}

.load-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #2a2a2a;
    color: #fff !important;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.load-more-btn:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
}

/* ===== КАТЕГОРИИ НОВОСТЕЙ ===== */
.news-categories {
    margin: 20px 0 30px;
    padding: 20px 0;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.news-categories-title {
    font-size: 16px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-align: center;
}

.news-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.news-category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 30px;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: .3s;
    justify-content: center;
}

.news-category-item:hover {
    background: rgba(255, 181, 14, 0.08);
    border-color: #ffb50e;
    color: #ffb50e;
    transform: translateY(-2px);
}

.news-category-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
}

.news-category-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .news-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .news-categories {
        padding: 15px 0;
        margin: 15px 0 20px;
    }

    .news-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .news-category-item {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
        border-radius: 20px;
    }

    .news-category-icon {
        width: 24px;
        height: 24px;
    }

    .news-category-icon img {
        width: 16px;
        height: 16px;
    }

    .news-categories-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
}

@media (max-width: 450px) {
    .news-categories-grid {
        gap: 8px;
    }

    .news-category-item {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
        border-radius: 16px;
    }

    .news-category-icon {
        width: 20px;
        height: 20px;
    }

    .news-category-icon img {
        width: 14px;
        height: 14px;
    }
}

/* Адаптив */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .news-card-img {
        height: 130px;
    }
    .news-card-tag {
        top: 6px;
        left: 6px;
        padding: 4px;
    }
    .news-card-tag img {
        width: 16px;
        height: 16px;
    }
    .news-card-content {
        padding: 10px 12px 14px;
    }
    .news-card-content h3 {
        font-size: 13px;
    }
    .news-card-content p {
        font-size: 11px;
    }
    .news-date {
        font-size: 10px;
        margin-bottom: 6px;
    }
}