/* ========================================
   Video Game Card - Shared Component
   Used by: VideoGameDiscovery, anywhere video games are shown as cards
   ======================================== */

.vgc-card {
    background: var(--mv-bg-card);
    border: 1px solid var(--mv-border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vgc-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--mv-shadow-lg);
}

/* Image wrapper - 16:9 for video games */
.vgc-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--mv-bg-surface);
}

.vgc-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vgc-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--mv-bg-surface);
}

/* Rank badge - top left */
.vgc-rank-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
}

/* Personal rating badge - bottom right of image */
.vgc-rating-overlay {
    position: absolute;
    bottom: 6px;
    right: 6px;
    z-index: 1;
}

/* Score badges (legacy, kept for compatibility) */
.vgc-score-badges {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    gap: 3px;
}

.vgc-score-badges .badge {
    font-size: 0.65rem;
    font-weight: 600;
}

/* Card body */
.vgc-card-body {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vgc-card-title {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.25;
    color: var(--mv-text-primary);
}

.vgc-card-title a {
    color: inherit;
}

.vgc-card-title a:hover {
    color: #0d6efd;
}

.vgc-card-year {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--mv-text-muted);
}

.vgc-card-platforms {
    font-size: 0.7rem;
    color: var(--mv-text-secondary);
    margin-top: 3px;
    font-weight: 500;
}

.vgc-card-meta {
    font-size: 0.7rem;
    color: var(--mv-text-muted);
    margin-top: 2px;
    line-height: 1.3;
}

/* Action buttons - pinned to bottom, centered */
.vgc-card-actions {
    display: flex;
    gap: 0.25rem;
    margin-top: auto;
    padding-top: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}

.vgc-card-actions .vg-action-btn {
    padding: 0.1rem 0.35rem;
    font-size: 0.7rem;
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 575px) {
    .vgc-card-body {
        padding: 6px 8px 8px;
    }

    .vgc-card-title {
        font-size: 0.8rem;
    }

    .vgc-card-meta,
    .vgc-card-platforms {
        font-size: 0.62rem;
    }

    .vgc-card-actions .vg-action-btn {
        padding: 0.1rem 0.25rem;
        font-size: 0.7rem;
    }
}
