@import url(./global.css);

.card {
    background-color: #FAF9F6;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;        /* keeps image corners rounded */
    height: fit-content;
    padding: 0;              /* removed — card-content handles padding now */
}

.gameimg {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    border: none;
    outline: 0;
}

.card-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: row;      /* title and date side by side like the reference */
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.title {
    color: black;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date {
    color: var(--secondary-color);
    font-size: 14px;
    white-space: nowrap;     /* prevents date from wrapping */
}

.description {
    color: rgb(45, 45, 45);
    font-size: 13px;
    margin: 0;
}