/* Card grid container */
.contentLastPublishedItemDate {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Card */
.cardItem {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cardItem:hover {
    border-color: rgba(101, 121, 183, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Card image */
.cardItemPicture {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
}
.cardItemPicture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.cardItem:hover .cardItemPicture img {
    transform: scale(1.03);
}

/* Release year badge */
.cardItemReleaseDate {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(13, 30, 49, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Download icon badge */
.cardItemDowloadIcon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(13, 30, 49, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}
.cardItem:hover .cardItemDowloadIcon {
    opacity: 1;
}
.cardItemDowloadIcon .material-symbols-outlined {
    font-size: 18px;
}

/* Card body */
.lineCard {
    padding: 1rem 1.25rem 0.5rem;
}

.cardItemTitleGame {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer: description + platform */
.bottomGameCard {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem 1.25rem;
    margin-top: auto;
}

.descriptionGameCard {
    color: #999;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.systemGame {
    flex-shrink: 0;
}
.systemGame img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.cardItem:hover .systemGame img {
    opacity: 1;
}

/* Hack count badge on game cards */
.cardItem .hack-count {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 1.25rem 1rem;
    padding: 0.2rem 0.6rem;
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    width: fit-content;
}

/* Game parent link on hack cards */
.cardItem .game-parent-link {
    display: block;
    margin: 0 1.25rem 1rem;
    font-size: 0.75rem;
    color: #6579b7;
    text-decoration: none;
    transition: color 0.2s;
}
.cardItem .game-parent-link:hover {
    color: #8ba3e0;
}
