/* ========== СТРАНИЦА STEAM ========== */

/* ===== ЗАГОЛОВОК ===== */
.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;
}

/* ===== БАННЕР-КАРУСЕЛЬ (3 слайда) ===== */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 10px 0 25px;
}

.banner-carousel-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.banner-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 12px;
}

.banner-carousel-slide {
    flex: 0 0 calc(33.333% - 8px);
    min-width: 0;
}

.banner-carousel-slide a {
    display: block;
    position: relative;
    aspect-ratio: 381/148;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;
}

.banner-carousel-slide a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.banner-carousel-slide a:hover img {
    transform: scale(1.02);
}

.banner-carousel-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.banner-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.banner-carousel-arrow:hover {
    background: rgba(255,181,14,0.3);
    border-color: #ffb50e;
}

.banner-carousel-prev {
    left: 8px;
}

.banner-carousel-next {
    right: 8px;
}

/* ===== ПОИСК ===== */
.search-wrapper {
    margin-bottom: 30px;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-input:focus {
    border-color: #ffb50e;
    box-shadow: 0 0 0 3px rgba(255,181,14,0.2);
    background: #252525;
}

.search-input::placeholder {
    color: #666;
}

.search-clear {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 18px;
    transition: color 0.2s;
    display: none;
}

.search-clear:hover {
    color: #ffb50e;
}

.search-stats {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #ffb50e;
}

/* ===== КАТАЛОГ ИГР ===== */
.steam-catalog {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 20px 0;
}

/* ===== КАРТОЧКА ИГРЫ ===== */
.steam-game-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #2a2a2a;
}

.steam-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border-color: #ffb50e;
}

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

/* Картинка */
.steam-game-img {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.steam-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.steam-game-card:hover .steam-game-img img {
    transform: scale(1.05);
}

/* Название */
.steam-game-info {
    padding: 10px 14px 0;
    text-align: center;
}

.steam-game-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Блок цен */
.steam-game-price-block {
    display: flex;
    align-items: center;
    padding: 10px 14px 14px;
    height: 44px;
}

.steam-discount {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #a2a2a2;
    width: 25%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    flex-shrink: 0;
    transition: 0.5s;
}

.steam-game-card:hover .steam-discount {
    background: #f2a900;
    border-color: #ffcc57;
    color: #000;
}

.steam-price-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 75%;
    padding-right: 4px;
}

.steam-old-price {
    font-size: 13px;
    color: #b3b3b3;
    text-decoration: line-through;
    font-weight: bold;
    line-height: 1.4;
}

.steam-price {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
}

/* ===== КНОПКА «ПОКАЗАТЬ ЕЩЁ» ===== */
.load-more-container {
    text-align: center;
    margin: 30px 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;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

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

/* ===== АДАПТИВ ===== */

/* Баннер-карусель */
@media (max-width: 992px) {
    .banner-carousel-slide {
        flex: 0 0 calc(50% - 6px);
    }
    .banner-carousel-track {
        gap: 10px;
    }
    .banner-carousel-title {
        font-size: 13px;
        padding: 10px 12px 8px;
    }
}

@media (max-width: 600px) {
    .banner-carousel-slide {
        flex: 0 0 calc(70% - 6px);
    }
    .banner-carousel-track {
        gap: 10px;
    }
    .banner-carousel-slide a {
        aspect-ratio: 16/9;
    }
    .banner-carousel-title {
        font-size: 12px;
        padding: 8px 10px 6px;
    }
    .banner-carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .banner-carousel-prev {
        left: 4px;
    }
    .banner-carousel-next {
        right: 4px;
    }
}

/* Каталог */
@media (max-width: 1200px) {
    .steam-catalog {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .steam-catalog {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .steam-game-info h3 {
        font-size: 13px;
        min-height: 32px;
    }
    .steam-price {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .steam-catalog {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .steam-game-info {
        padding: 8px 10px 0;
    }
    .steam-game-info h3 {
        font-size: 12px;
        min-height: 28px;
    }
    .steam-game-price-block {
        padding: 8px 10px 10px;
        height: auto;
        flex-wrap: nowrap;
    }
    .steam-discount {
        font-size: 11px;
        width: auto;
        min-width: 38px;
        height: 24px;
        line-height: 24px;
        padding: 0 6px;
    }
    .steam-price-right {
        width: auto;
        flex: 1;
        padding-right: 2px;
    }
    .steam-old-price {
        font-size: 11px;
    }
    .steam-price {
        font-size: 15px;
    }
    .section-games-title h1 {
        font-size: 24px;
    }
}