/* ==========================================================================
   Game showcase cards — image with glow + shimmer hover, text next to it.
   Add .reverse to swap sides, .is-note for the text-only "More to come" card.
   ========================================================================== */

.game-card {
    display: flex;
    margin-top: var(--space-md);
    background: var(--shade-bg);
    border: 1px solid var(--accent-dim);
    border-radius: var(--radius-sm);
    overflow: hidden;
    align-items: stretch;
    min-height: 200px;
}
.game-card.reverse { flex-direction: row-reverse; }
.game-card.is-note {
    text-align: center;
    border: none;
}

.game-image {
    flex: 0 0 45%;
    background: var(--accent-tint-2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
/* Placeholder shown if the image fails to load */
.game-image::before {
    content: "[ IMAGE DATA MISSING ]";
    font-family: var(--font-mono);
    color: var(--accent-dim-text);
    font-size: var(--font-small);
    letter-spacing: 0.1em;
}
/* Fixed container size; the image fills it edge-to-edge */
.game-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    cursor: pointer;
    transition: transform var(--duration-slow) ease, filter var(--duration-slow) ease;
}

/* Glow frame on hover */
.game-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 0 var(--accent-glow);
    transition: box-shadow var(--duration-slow) ease, border-color var(--duration-slow) ease;
    z-index: 2;
}
.game-image:has(img):hover::after {
    border-color: var(--accent);
    box-shadow: inset 0 0 30px 4px var(--accent-glow), 0 0 20px var(--accent-glow);
}
.game-image:has(img):hover img {
    transform: scale(1.06);
    filter: brightness(1.08) saturate(1.1);
}

/* Diagonal shimmer sweep */
.game-image .shimmer-sweep {
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(var(--accent-rgb), 0.35) 50%,
        rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
}
.game-image:has(img):hover .shimmer-sweep {
    opacity: 1;
    animation: shimmer-move 1.1s ease forwards;
}
@keyframes shimmer-move {
    from { left: -60%; }
    to   { left: 130%; }
}

.game-info {
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.game-info h3 {
    font-size: var(--font-h3);
    color: var(--text-main);
    margin-bottom: var(--space-xs);
}
.game-info p {
    margin-bottom: var(--space-lg);
    font-size: var(--font-body-sm);
}

@media (max-width: 730px) {
    .game-card,
    .game-card.reverse { flex-direction: column; }
    .game-image,
    .game-info { width: 100%; }
    .game-image { min-height: 180px; width: auto; }
    .game-info { padding: var(--space-lg); }
}
