/* RAWG Cards - General Layout */
.latest-game-card {
    background: var(--white); /* Clean background for the cards */
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px; /* Space between cards */
}

.latest-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Image Section */
.latest-game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent layout */
    overflow: hidden;
    border-bottom: 2px solid var(--light-gray);
}

.latest-game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio */
}

/* Content Section */
.latest-game-card-content {
    padding: 15px;
    text-align: center; /* Center-align text */
}

.latest-game-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.latest-game-release,
.latest-game-rating,
.latest-game-platforms,
.latest-game-genres {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 5px 0;
}

/* Mobile-Specific Layout */
@media (max-width: 768px) {
    #rawg-cards {
        display: flex;
        flex-direction: column; /* Stack cards vertically */
        gap: 15px;
    }

    .latest-game-card {
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
    }

    .latest-game-card-image {
        height: 150px; /* Slightly smaller for mobile */
    }

    .latest-game-card-content {
        padding: 10px;
    }

    .latest-game-title {
        font-size: 1rem;
    }

    .latest-game-release,
    .latest-game-rating,
    .latest-game-platforms,
    .latest-game-genres {
        font-size: 0.85rem;
    }
}
