/*
 * GOONDEX CARD BASE
 * Shared grid + card shell used by performer/studio/scene listings.
 */

:root {
    --gx-card-thumb-ratio: 3 / 4;
    --gx-card-min-width: 250px;
}

.gx-card-grid {
    display: grid;
    gap: 1.6rem;
    padding: 1rem 0;
    grid-template-columns: repeat(auto-fill, minmax(var(--gx-card-min-width), 1fr));
}

.gx-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;

    box-shadow: none;
    transition: none;

    cursor: pointer;
    position: relative;
}

.gx-card-thumb {
    width: 100%;
    aspect-ratio: var(--gx-card-thumb-ratio);
    background-size: cover;
    background-position: center;
    filter: none;
    transition: none;
}

.gx-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gx-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.gx-card-meta {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    opacity: 0.9;
}

.gx-card-tags {
    margin-top: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.gx-card-tag {
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 79, 163, 0.15);
    color: var(--color-brand);
    border: 1px solid rgba(255, 79, 163, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (max-width: 550px) {
    .gx-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }

    .gx-card-title {
        font-size: 1rem;
    }
}
