/* --- Game Card Styling --- */
.game-card {
    background-color: var(--surface-color); /* Use main theme background */
    border: 1px solid var(--border-color); /* Slightly lighter border than background */
    border-radius: 8px;
    overflow: hidden; /* Ensures image corners are rounded */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Stronger shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    color: var(--dark-color); /* Default light text for card */
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Stronger shadow */
}
.game-card .card-img-wrapper
{
    position: relative;
    width: 100%;
    height: 0;
    padding-top: calc( 100% / 4 * 3 );
    background-color: #FFFFFF;
}
.game-card img.card-img { /* Added .card-img selector */
    width: 100%;
    object-fit: contain; /* Contain the image within the area, no cropping */
    display: block;
    aspect-ratio: 4 / 3;
    position: absolute;
    top: 0;
    padding: 8px;
}

.game-card .card-content { /* Added wrapper for content */
    padding: 1rem;
    flex-grow: 1; /* Allow content to fill space */
    display: flex;
    flex-direction: column;
}

.game-card h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem; /* Adjusted margin */
    color: #FFFFFF; /* Heading Text Color */
}

.game-card p { /* General paragraph style in card */
    font-size: 0.9rem;
    color: var(--dark-color); /* Primary text for paragraphs */
    margin: 0 0 0.5rem; /* Adjusted margin */
    line-height: 1.4;
}
.game-card p.description {
    flex-grow: 1; /* Allow description to take up remaining space */
    margin-bottom: 1rem;
}

.game-card p small {
    font-size: 0.8rem;
    color: var(--tertiary-accent); /* Gold for small text for subtle emphasis */
    display: block; /* Put on its own line */
    margin-top: 0.5rem;
}

.game-card .btn-small { /* Style the button within the card */
    margin-top: auto; /* Push button to the bottom */
    align-self: flex-start; /* Align button left */
}


/* Responsive adjustments for game cards */
@media (max-width: 576px) {
    /* Note: .games-grid container adjustment is in pages/games.css */
    /* This file only contains card-specific adjustments if needed */
    /* Example: Adjust image height */
    /* .game-card img.card-img { height: 150px; } */
}