/* Games Block Styles */

/* Games Section */
.games-section {
    margin: 60px 0;
    padding: 40px 0;
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.games-title {
    font-size: 36px;
    font-weight: 700;
    color: #47CC6E;
    margin: 0;
}

.games-view-all {
    background: linear-gradient(255deg, #7cf900 4.11%, #008200 76.69%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.games-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(71, 204, 110, 0.4);
    color: #fff;
}

/* Filter Controls */
.games-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #47CC6E;
    border-color: #47CC6E;
    color: #000F00;
    transform: translateY(-1px);
}

/* Sort Controls (for Slots page) */
.games-sort {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sort-btn {
    background: none;
    border: none;
    color: #ffffff;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    border-radius: 20px;
    opacity: 0.7;
}

.sort-btn:hover,
.sort-btn.active {
    color: #47CC6E;
    opacity: 1;
    background: rgba(71, 204, 110, 0.1);
}

/* Games Items Grid */
.games-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Games Item Card */
.games-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.games-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 165, 0, 0.3);
    border-color: rgba(255, 165, 0, 0.5);
}

.games-item-image {
    position: relative;
    overflow: hidden;
}

.games-item img {
    width: 100%;
    transition: transform 0.3s ease;
}

.games-item:hover img {
    transform: scale(1.05);
}

/* Game Type Badge */
.game-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #47CC6E;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Games Item Info */
.games-item-info {
    padding: 15px;
}

.games-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.games-item-category {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Game Labels */
.game-labels {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.game-label {
    background: rgba(71, 204, 110, 0.2);
    color: #47CC6E;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.game-label.popular {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
}

.game-label.time {
    background: rgba(124, 249, 0, 0.2);
    color: #7cf900;
}

/* Play Button Overlay */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 15, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    gap: 10px;
}

.games-item:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    background: linear-gradient(255deg, #7cf900 4.11%, #008200 76.69%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(124, 249, 0, 0.4);
}

.demo-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
}

.demo-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* CTA Section */
.games-cta {
    text-align: center;
    margin: 50px 0;
}

.games-cta-btn {
    background: linear-gradient(180deg, #fffad5, #ed910a 47%, #ff6400);
    color: #fff;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.games-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 100, 0, 0.4);
    color: #fff;
}

/* Categories Section (for Games page) */
.games-categories {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(71, 204, 110, 0.1);
    border: 1px solid rgba(71, 204, 110, 0.3);
    color: #47CC6E;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

.category-btn:hover,
.category-btn.active {
    background: #47CC6E;
    color: #000F00;
    transform: translateY(-1px);
}

/* Show More Button */
.show-more-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin: 30px auto;
    text-align: center;
    max-width: 200px;
}

.show-more-btn:hover {
    background: rgba(71, 204, 110, 0.2);
    border-color: #47CC6E;
    transform: translateY(-2px);
}

/* Lazy Loading */
.games-item img[data-src] {
    opacity: 0.3;
    filter: blur(3px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.games-item img[data-src].loaded {
    opacity: 1;
    filter: blur(0);
}

/* Loading Placeholder */
.games-item-placeholder {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    aspect-ratio: 16/9;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .games-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .games-title {
        font-size: 28px;
    }
    
    .games-filters,
    .games-sort,
    .games-categories {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-btn,
    .sort-btn,
    .category-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .games-items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .games-item-info {
        padding: 12px;
    }
    
    .games-item-title {
        font-size: 14px;
    }
    
    .play-btn,
    .demo-btn {
        padding: 10px 20px;
        font-size: 12px;
        min-width: 100px;
    }
}
