/**
 * G Blocks - Games Slider Styles
 */

.g-games-slider-block {
    width: 100%;
    margin: 40px 0;
    background: var(--games-section-bg, transparent);
    border-radius: 20px;
}

.g-games-container { max-width: 1400px; margin: 0 auto; padding: 24px 20px; }

.g-games-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.g-games-title-group { display: flex; align-items: center; gap: 12px; }
.g-games-title { margin: 0 !important; font-size: 24px !important; font-weight: 700; color: var(--games-section-title, #fff) !important; }

.g-games-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--games-count, #fff) !important;
}

.g-games-nav { display: flex; align-items: center; gap: 12px; }

.g-games-all-link {
    color: var(--games-accent, #00b67a) !important;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-right: 8px;
    transition: opacity 0.3s ease;
}
.g-games-all-link:hover { opacity: .8; }

.g-games-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.g-games-nav-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.g-games-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.g-games-scroll-container { overflow: hidden; }

.g-games-scroll-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    margin-bottom: -10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.g-games-scroll-wrapper::-webkit-scrollbar { display: none; }

.g-game-item { flex: 0 0 auto; width: 200px; }
.g-game-item-link { text-decoration: none; cursor: pointer; color: inherit; display: block; }

.g-game-item-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #252837;
    margin-bottom: 12px;
}

.g-game-item-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.g-game-item:hover .g-game-item-image img { transform: scale(1.05); }

.g-game-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.g-game-item:hover .g-game-item-overlay { opacity: 1; }

.g-game-play-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--games-button, #00b67a);
    border-radius: 8px;
    color: var(--games-button-text, #fff);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    transform: scale(0.9);
    transition: all 0.3s ease;
    cursor: pointer;
}
.g-game-item:hover .g-game-play-btn { transform: scale(1); }

.g-game-item-details { padding: 0 4px; display: flex; flex-direction: column; align-items: start; }
.g-game-provider-info { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; color: var(--games-game-provider, #696a6a) !important; }
.g-provider-icon { width: 16px; height: 16px; object-fit: contain; }
.g-provider-icon-placeholder { font-size: 14px; }
.g-provider-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-game-title { margin: 0 !important; font-size: 16px !important; font-weight: 600; color: var(--games-game-title, #fff) !important; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 768px) {
    .g-games-header { flex-direction: column; gap: 16px; align-items: flex-start; }
    .g-game-item { width: 160px; }
    .g-game-title { font-size: 14px !important; }
    .g-game-play-btn { padding: 10px 24px; font-size: 14px; }
}

@media (max-width: 480px) { .g-game-item { width: 140px; } }
