/* ========================================
   Board Game Card - Shared Component
   Used by: BoardGameTrending, What's New, anywhere board games are shown
   ======================================== */

.bgc-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;
}

.bgc-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--mv-shadow-lg);
}

/* Image wrapper - square aspect for board games */
.bgc-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--mv-bg-surface);
}

.bgc-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.bgc-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 */
.bgc-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 */
.bgc-personal-rating {
    position: absolute;
    bottom: 6px;
    right: 6px;
    z-index: 1;
}

/* BGG rating badge (legacy) */
.bgc-rating-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
}

/* Card body */
.bgc-card-body {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bgc-card-title {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.25;
    color: var(--mv-text-primary);
}

.bgc-card-title a {
    color: inherit;
}

.bgc-card-title a:hover {
    color: #0d6efd;
}

.bgc-card-title .badge {
    vertical-align: middle;
}

.bgc-card-year {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--mv-text-muted);
}

/* Meta line (players, time, complexity) */
.bgc-card-meta {
    font-size: 0.72rem;
    color: var(--mv-text-secondary);
    margin-top: 4px;
    line-height: 1.3;
}

/* Action buttons - pinned to bottom, centered */
.bgc-card-actions {
    display: flex;
    gap: 0.25rem;
    margin-top: auto;
    padding-top: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}

.bgc-card-actions .bg-action-btn {
    padding: 0.1rem 0.35rem;
    font-size: 0.7rem;
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 575px) {
    .bgc-card-body {
        padding: 6px 8px 8px;
    }

    .bgc-card-title {
        font-size: 0.8rem;
    }

    .bgc-card-meta {
        font-size: 0.65rem;
    }

    .bgc-card-actions .bg-action-btn {
        padding: 0.1rem 0.25rem;
        font-size: 0.7rem;
    }
}
