/* Games Section Styles */
.games-section {
    padding: 4rem 0;
}

.games-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.games-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.games-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #b8c5d1;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.games-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.games-category {
    margin-bottom: 3rem;
}

.games-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #448756;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #448756;
    text-align: center;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: #448756;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(68, 135, 86, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-card:hover::before {
    opacity: 1;
}

.game-image {
    width: 100%;
    margin: 0;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.game-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}


.game-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-category {
    font-size: 0.9rem;
    color: #448756;
    margin-bottom: 1rem;
    font-weight: 500;
}

.game-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.game-play-btn {
    flex: 1;
    background: linear-gradient(135deg, #448756 0%, #5a9f6a 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.game-play-btn:hover::before {
    left: 100%;
}

.game-play-btn:hover {
    background: linear-gradient(135deg, #5a9f6a 0%, #448756 100%);
    box-shadow: 0 5px 15px rgba(68, 135, 86, 0.4);
    color: #ffffff;
}

.game-demo-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-demo-btn:hover {
    background: #ffffff;
    color: #181515;
}

.game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.game-badge.new {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.game-badge.hot {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    box-shadow: 0 2px 8px rgba(255, 154, 86, 0.3);
}

/* Loading Animation */
.game-card.loading {
    background: rgba(255, 255, 255, 0.1);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-container {
        padding: 0 1rem;
    }
    
    .games-title {
        font-size: 2rem;
    }
    
    .games-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .games-grid.compact {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .game-image {
        height: 160px;
    }
    
    .game-content {
        padding: 1rem;
    }
    
    .game-title {
        font-size: 1rem;
        min-height: 2.4rem;
    }
    
    .game-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .game-play-btn,
    .game-demo-btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .games-grid.compact {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-image {
        height: 140px;
    }
    
    .game-content {
        padding: 0.75rem;
    }
    
    .game-title {
        font-size: 0.9rem;
        min-height: 2.2rem;
    }
}
