/* ========================================
   Games Grid - Jogos em Destaque
   ======================================== */

.games-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.game-card {
    position: relative;
    aspect-ratio: 1 / 1.25;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.3);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-overlay i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
    animation: pulse-scale 2s ease-in-out infinite;
}

.game-overlay span {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
    
    .game-card {
        border-radius: 8px;
    }
    
    .game-overlay i {
        font-size: 2rem;
    }
    
    .game-overlay span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        gap: 8px;
    }
    
    .game-card {
        border-radius: 6px;
    }
    
    .game-overlay i {
        font-size: 1.5rem;
    }
    
    .game-overlay span {
        font-size: 0.65rem;
    }
}

/* Loading skeleton */
.game-card.loading {
    background: linear-gradient(
        90deg,
        var(--bg-card) 0%,
        var(--bg-input) 50%,
        var(--bg-card) 100%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Badge "NOVO" ou "HOT" opcional */
.game-badge {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    background: var(--accent-red);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.game-badge.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.game-badge.new {
    background: linear-gradient(135deg, var(--accent-green), #4FD1C5);
}

