/* ============================================
   Games Carousel Styles
   ============================================ */

/* Carousel Section */
.games-carousel-section {
    padding: 30px 0;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.games-carousel-wrap {
    margin-bottom: 20px;
}

/* Carousel Header */
.games-carousel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
    position: relative;
}

.games-carousel__head::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700 0%, transparent 100%);
    border-radius: 2px;
}

.games-carousel__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.games-carousel__title-icon-wr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ffd700 0%, #ffba23 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.games-carousel__title-icon {
    font-size: 24px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.games-carousel__button-all {
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #ffd700;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.games-carousel__button-all:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffba23 100%);
    border-color: #ffd700;
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.games-carousel__button-all-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.games-carousel__button-all:hover .games-carousel__button-all-icon {
    transform: translateX(4px);
}

/* Carousel Container */
.games-carousel__container {
    position: relative;
    overflow: hidden;
}

.games-carousel {
    overflow: hidden !important;
}

.games-carousel .swiper-wrapper {
    align-items: stretch;
}

/* Game Card */
.game-list-card {
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1d24 0%, #0f1117 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    border: 2px solid rgba(255, 215, 0, 0.1);
    z-index: 1;
}

.game-list-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.5) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.game-list-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4),
                0 0 0 3px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
    z-index: 100;
}

.game-list-card:hover::before {
    opacity: 1;
}

.game-list-card__img-area {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1e24 0%, #0f1117 100%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.game-list-card__body-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.game-list-card:hover .game-list-card__body-img {
    transform: scale(1.1);
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.card-badge__row {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    flex-direction: column;
    align-items: flex-end;
}

.card-badge__new {
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.4);
}

.card-badge__exclusive {
    padding: 4px 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffba23 100%);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.card-badge__bottom {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge__bottom--branded {
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.card-badge__bottom--jackpot {
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.card-badge__bottom-icon {
    width: 14px;
    height: 14px;
}

/* Card Body (Always Visible) */
.game-list-card__body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    opacity: 1;
    pointer-events: all;
    transition: background 0.3s ease;
    z-index: 3;
}

.game-list-card:hover .game-list-card__body {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.game-list-card__body-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.game-list-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-list-card__demo {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.game-list-card__demo-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.game-list-card__demo:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
    color: #ffd700;
}

.game-list-card__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.game-list-card:hover .game-list-card__center {
    opacity: 1;
    pointer-events: all;
}

.game-list-card__favorites-wr {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-list-card__favorites-wr:hover {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
}

.game-list-card__favorites-ic {
    width: 18px;
    height: 18px;
    color: #fff;
    transition: color 0.3s ease;
}

.game-list-card__favorites-wr:hover .game-list-card__favorites-ic {
    color: #ffd700;
}

.game-list-card__body-play {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700 0%, #ffba23 100%);
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    transition: all 0.3s ease;
}

.game-list-card__body-play:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.8);
}

.game-list-card__body-play-icon {
    width: 24px;
    height: 24px;
    color: #000;
}

.game-list-card__provider-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
}

.game-list-card__provider-img {
    max-height: 20px;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.game-list-card__provider-link:hover .game-list-card__provider-img {
    filter: brightness(1.2);
}

.game-list-card__body-title {
    text-align: center;
    margin-top: auto;
}

.game-list-card__body-title-inner {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* Navigation */
.games-carousel__navigation {
    display: flex;
    gap: 15px;
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    transform: translateY(-50%);
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.swiper-button-prev-wr,
.swiper-button-next-wr {
    pointer-events: all;
}

.swiper-button-prev,
.swiper-button-next {
    width: 36px;
    height: 36px;
    background: rgba(255, 215, 0, 0.15);
    border: 1.5px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: static;
    margin: 0;
    backdrop-filter: blur(10px);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    content: none;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.7);
    transform: translateY(-2px);
}

.games-carousel__navigation-icon {
    width: 16px;
    height: 16px;
    color: #ffd700;
    transition: all 0.3s ease;
}

.swiper-button-prev:hover .games-carousel__navigation-icon,
.swiper-button-next:hover .games-carousel__navigation-icon {
    color: #fff;
}

.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.swiper-button-disabled:hover {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.swiper-button-disabled .games-carousel__navigation-icon {
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .games-carousel__title {
        font-size: 20px;
    }

    .games-carousel__title-icon-wr {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .games-carousel-section {
        padding: 40px 0;
    }

    .games-carousel__head {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .games-carousel__title {
        font-size: 18px;
    }

    .games-carousel__title-icon-wr {
        width: 32px;
        height: 32px;
    }

    .games-carousel__title-icon {
        width: 18px;
        height: 18px;
    }

    .games-carousel__button-all {
        padding: 8px 16px;
        font-size: 12px;
    }

    .games-carousel-section {
        padding: 20px 0;
    }

    .games-carousel__navigation {
        left: 5px;
        right: 5px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 32px;
        height: 32px;
    }

    .games-carousel__navigation-icon {
        width: 14px;
        height: 14px;
    }

    .game-list-card__body-play {
        width: 50px;
        height: 50px;
    }

    .game-list-card__body-play-icon {
        width: 20px;
        height: 20px;
    }

    .card-badge__row {
        top: 6px;
        right: 6px;
    }

    .card-badge__new,
    .card-badge__exclusive {
        padding: 3px 8px;
        font-size: 9px;
    }

    .card-badge__bottom {
        padding: 4px 8px;
        font-size: 9px;
    }

    .card-badge__bottom-icon {
        width: 12px;
        height: 12px;
    }

    .game-list-card__demo {
        padding: 4px 6px;
        font-size: 8px;
        gap: 3px;
        white-space: nowrap;
    }

    .game-list-card__demo-icon {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .games-carousel__title {
        font-size: 16px;
    }

    .game-list-card__demo {
        padding: 4px 12px;
        font-size: 10px;
    }

    .game-list-card__body-title-inner {
        font-size: 12px;
    }
}
