/* ==========================================================================
   GIG CARD - one event card, used by /gig-guide and the what's-on strip on
   /events. The card itself is site.css .card; this is the photo, the date
   chip and the where / when lines. Everything is .gg-
   ========================================================================== */
.gg-card-art {
    aspect-ratio: 16 / 10;
    background-color: var(--sg-panel);
    background-image: var(--gg-art);
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
    transition: filter 0.25s ease;
}

.gg-card:hover .gg-card-art {
    filter: brightness(1);
}

/* Date chip over the photo */
.gg-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    padding: 8px 8px 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(8, 8, 8, 0.88);
    line-height: 1;
}

.gg-chip i {
    font-style: normal;
    font-family: var(--sg-font-accent);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    color: var(--sg-dim);
}

.gg-chip b {
    font-family: var(--sg-font-display);
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    margin: 3px 0 2px;
}

/* No date yet: just the year */
.gg-chip.is-tba b {
    font-size: 0.95rem;
    margin: 0;
    color: var(--sg-gold);
}

/* Where and when, with pin and clock icons in the text colour */
.gg-where,
.gg-when {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 0.82rem;
}

.gg-where {
    color: var(--sg-paper-line);
}

.gg-when {
    color: var(--sg-gold);
}

.gg-where::before,
.gg-when::before {
    content: '';
    width: 12px;
    height: 13px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: var(--gg-icon) center / contain no-repeat;
    mask: var(--gg-icon) center / contain no-repeat;
}

.gg-where::before {
    --gg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

.gg-when::before {
    --gg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm1-13h-2v6l5 3 1-1.7-4-2.3z'/%3E%3C/svg%3E");
}

.gg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

/* Source link and "last checked" line, kept quiet */
.gg-via {
    margin-top: 10px;
    color: var(--sg-dim);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--sg-ink-soft);
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.gg-via:hover {
    color: var(--sg-orange);
    border-color: var(--sg-orange);
}

.gg-updated {
    margin-top: 20px;
    color: var(--sg-dim);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
    .gg-card-art {
        transition: none;
    }
}
