/*
 * Страница категории «Новости»
 * Файл: templates/metallurg-dle-template/css/news.css
 */

.club-news-page {
    --news-red: var(--red, #c61020);
    --news-red-dark: var(--red-dark, #870915);
    --news-gold: var(--gold, #f6c542);
    --news-ink: var(--ink, #141414);
    --news-muted: var(--muted, #6e6e73);
    --news-line: var(--line, #e8e8ea);
    --news-radius: var(--radius, 18px);
    --news-shadow: var(--shadow, 0 18px 45px rgba(20, 20, 20, .09));

    display: grid;
    gap: 34px;
}

.club-news-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 270px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 35px;
    padding: clamp(30px, 5vw, 58px);
    color: #fff;
    border-radius: 22px;
    background:
        radial-gradient(circle at 82% 25%, rgba(246, 197, 66, .25), transparent 29%),
        linear-gradient(125deg, #790812 0%, #c61020 52%, #3e0309 100%);
    box-shadow: var(--news-shadow);
}

.club-news-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .14;
    background-image:
        linear-gradient(30deg, transparent 45%, rgba(255, 255, 255, .25) 46%, transparent 47%);
    background-size: 42px 42px;
}

.club-news-hero__content {
    position: relative;
    z-index: 2;
}

.club-news-kicker {
    display: inline-block;
    color: var(--news-gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.club-news-kicker--red {
    color: var(--news-red);
}

.club-news-hero h1 {
    max-width: 700px;
    margin: 10px 0 16px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: .98;
    letter-spacing: -.045em;
}

.club-news-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 16px;
}

.club-news-hero__mark {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    border: 4px solid var(--news-gold);
    border-radius: 50%;
    color: var(--news-gold);
    background: rgba(0, 0, 0, .22);
    box-shadow: 0 0 0 16px rgba(246, 197, 66, .08);
    font-size: 78px;
    font-weight: 950;
    line-height: 1;
}

.club-news-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--news-line);
}

.club-news-heading h2 {
    margin: 4px 0 0;
    color: var(--news-ink);
    font-size: clamp(29px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.club-news-rss {
    flex: 0 0 auto;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: var(--news-red);
    border: 1px solid #efcbd0;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 900;
    transition: .2s;
}

.club-news-rss:hover {
    color: #fff;
    border-color: var(--news-red);
    background: var(--news-red);
}

/* Сетка кратких новостей, которые DLE берёт из shortstory.tpl */
.club-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* Базовое оформление карточек из существующего shortstory.tpl */
.club-news-grid .news-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--news-line);
    border-radius: var(--news-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .035);
    transition: transform .2s, box-shadow .2s;
}

.club-news-grid .news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--news-shadow);
}

.club-news-grid .news-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #ececee;
}

.club-news-grid .news-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s;
}

.club-news-grid .news-card:hover .news-card__image img {
    transform: scale(1.035);
}

.club-news-grid .news-card__fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--news-gold);
    background: linear-gradient(135deg, var(--news-red-dark), var(--news-red));
}

.club-news-grid .news-card__fallback span {
    width: 95px;
    height: 95px;
    display: grid;
    place-items: center;
    border: 4px solid var(--news-gold);
    border-radius: 50%;
    font-size: 48px;
    font-weight: 900;
}

.club-news-grid .news-card__body {
    padding: 20px 21px 22px;
}

.club-news-grid .news-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--news-line);
}

.club-news-grid .news-card__meta {
    color: var(--news-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.club-news-grid .news-card__date {
    position: static;
    flex: 0 0 auto;
    padding: 0;
    color: var(--news-muted);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
}

.club-news-grid .news-card h2 {
    margin: 12px 0 10px;
    min-height: 2.35em;
    color: var(--news-ink);
    font-size: 23px;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.club-news-grid .news-card h2 a:hover {
    color: var(--news-red);
}

.club-news-grid .news-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--news-muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.club-news-grid .read-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 17px;
    padding-top: 15px;
    color: var(--news-red);
    border-top: 1px solid var(--news-line);
    font-size: 14px;
    font-weight: 900;
}

.club-news-grid .read-more b {
    font-size: 20px;
    transition: transform .2s;
}

.club-news-grid .read-more:hover b {
    transform: translateX(4px);
}

.club-news-grid .news-card__featured {
    display: none;
}

/* Первая публикация — крупная */
.club-news-grid .news-card:first-child {
    grid-column: 1 / -1;
    min-height: 365px;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(290px, .82fr);
    border: 0;
    background: #171717;
    box-shadow: var(--news-shadow);
}

.club-news-grid .news-card:first-child .news-card__image {
    height: 100%;
    min-height: 365px;
    aspect-ratio: auto;
}

.club-news-grid .news-card:first-child .news-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 55%, rgba(23, 23, 23, .35));
    pointer-events: none;
}

.club-news-grid .news-card:first-child .news-card__featured {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    padding: 7px 10px;
    color: #1d1700;
    border-radius: 8px;
    background: var(--news-gold);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.club-news-grid .news-card:first-child .news-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 44px);
    color: #fff;
}

.club-news-grid .news-card:first-child .news-card__topline,
.club-news-grid .news-card:first-child .read-more {
    border-color: rgba(255, 255, 255, .12);
}

.club-news-grid .news-card:first-child .news-card__date,
.club-news-grid .news-card:first-child p {
    color: rgba(255, 255, 255, .63);
}

.club-news-grid .news-card:first-child h2 {
    min-height: 0;
    font-size: clamp(29px, 4vw, 43px);
    line-height: 1.04;
}

.club-news-grid .news-card:first-child h2 a:hover,
.club-news-grid .news-card:first-child .read-more {
    color: var(--news-gold);
}


/* Исправление цвета заголовка первой крупной новости */
.club-news-grid .news-card:first-child h2,
.club-news-grid .news-card:first-child h2 a {
    color: #fff;
}

.club-news-grid .news-card:first-child h2 a:hover {
    color: var(--news-gold);
}

/* Стандартная навигация DLE */
.club-news-page .pagination {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 6px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--news-line);
    border-radius: 13px;
}

.club-news-page .pagination a,
.club-news-page .pagination span {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border-radius: 9px;
}

.club-news-page .pagination a:hover,
.club-news-page .pagination span {
    color: #fff;
    background: var(--news-red);
}

@media (max-width: 760px) {
    .club-news-page {
        gap: 26px;
    }

    .club-news-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 30px 24px;
    }

    .club-news-hero__mark {
        position: absolute;
        right: -34px;
        bottom: -42px;
        width: 145px;
        height: 145px;
        opacity: .2;
    }

    .club-news-hero p {
        max-width: 88%;
        font-size: 15px;
    }

    .club-news-heading {
        align-items: center;
    }

    .club-news-rss {
        padding: 0 12px;
        font-size: 12px;
    }

    .club-news-grid {
        grid-template-columns: 1fr;
    }

    .club-news-grid .news-card:first-child {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .club-news-grid .news-card:first-child .news-card__image {
        min-height: 225px;
        aspect-ratio: 16 / 9;
    }

    .club-news-grid .news-card:first-child .news-card__image::after {
        background: linear-gradient(0deg, rgba(23, 23, 23, .35), transparent 45%);
    }

    .club-news-grid .news-card h2 {
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .club-news-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .club-news-rss {
        min-height: 38px;
    }
}