/* ============================================================
   SHOP GAME CARD — shared style used across home, /games, /shop,
   related-games, featured-games and every game grid.
   Keep this as the single source of truth for game card visuals.
   ============================================================ */

.shop-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 991px) {
    .shop-games-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .shop-games-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

.shop-game-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.shop-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(61,184,168,0.15);
}

.shop-game-card-img { position: absolute; inset: 0; }
.shop-game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.shop-game-card:hover .shop-game-card-img img { transform: scale(1.06); }

.shop-game-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
}

.shop-game-card-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Nudged up so the logo sits above the cover's subject */
    transform: translate(-50%, -110%);
    z-index: 2;
    width: 70%;
    max-width: 240px;
    opacity: 0.9;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.shop-game-card:hover .shop-game-card-logo {
    opacity: 0.3;
    transform: translate(-50%, -115%) scale(0.95);
}
.shop-game-card-logo img {
    width: 100%; height: auto;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

.shop-game-card-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.5rem;
    z-index: 4;
    transform: translateY(8px);
    opacity: 0.85;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.shop-game-card:hover .shop-game-card-info {
    transform: translateY(0);
    opacity: 1;
}

.shop-game-card-link { position: absolute; inset: 0; z-index: 2; }

.shop-game-card-info a,
.shop-game-card-info button,
.shop-game-card-info form {
    position: relative;
    z-index: 5;
}

.shop-game-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.shop-game-platform {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shop-game-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(10,30,25,0.85), rgba(15,40,35,0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(61,184,168,0.3);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}

.shop-game-discount {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(239,68,68,0.35);
}
