/* Match Lab: the page and its result tiles. Plain cards on the site's own dark theme (the page used to carry its own gradient theme). */

.lab-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: .75rem;
    overflow: hidden;
}

.lab-card .card-header {
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: inherit;
}

.lab-summary {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .75rem;
}

.control-label { font-weight: 600; }

.hint { opacity: .75; font-size: .9rem; }

.results-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .75rem; }

.result-card {
    grid-column: span 12;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    cursor: pointer;
    position: relative;
}
.result-card:hover, .result-card:focus-visible { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .07); }
.result-card.person-card { grid-column: span 12; }

@media (min-width: 992px) { .result-card { grid-column: span 6; } }
@media (min-width: 1400px) { .result-card { grid-column: span 4; } }

.loading { opacity: .7; pointer-events: none; }

/* buttons */
/* Bootstrap's .btn paints its hover, focus and pressed states from --bs-btn-* variables, and a bare .btn has no colors for them: the gold went transparent on hover while the dark text stayed, so
   the label read black on the dark page. The states are given here, all gold with dark text. */
.accent-btn {
    --bs-btn-bg: var(--lamp-gold, #ffd700);
    --bs-btn-border-color: var(--lamp-gold, #ffd700);
    --bs-btn-color: #111;
    --bs-btn-hover-bg: var(--lamp-gold, #ffd700);
    --bs-btn-hover-border-color: var(--lamp-gold, #ffd700);
    --bs-btn-hover-color: #111;
    --bs-btn-active-bg: var(--lamp-gold, #ffd700);
    --bs-btn-active-border-color: var(--lamp-gold, #ffd700);
    --bs-btn-active-color: #111;
    --bs-btn-disabled-bg: var(--lamp-gold, #ffd700);
    --bs-btn-disabled-border-color: var(--lamp-gold, #ffd700);
    --bs-btn-disabled-color: #111;
    background: var(--lamp-gold, #ffd700);
    border: 1px solid var(--lamp-gold, #ffd700);
    color: #111;
    font-weight: 600;
    border-radius: .5rem;
}
.accent-btn:hover, .accent-btn:focus-visible { filter: brightness(1.08); color: #111; }
.accent-btn:active { filter: brightness(.95); color: #111; }
.accent-btn:disabled { opacity: .55; }

.ghost-btn {
    border-radius: .5rem;
    border: 1px solid rgba(255, 255, 255, .25);
    background: transparent;
    color: inherit;
    font-weight: 500;
}
.ghost-btn:hover { background: rgba(255, 255, 255, .08); color: inherit; }
.ghost-btn:disabled { opacity: .55; }

/* chips and category buttons */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    font-size: .82rem;
}

#evtCats .cat.is-selected {
    background: var(--lamp-gold, #ffd700);
    border-color: var(--lamp-gold, #ffd700);
    color: #111;
}
#evtCats .cat.is-selected .badge { background: #111 !important; color: #fff !important; }

/* result tiles */
.tile-muted { opacity: .55; }
.tile-saved { border-color: rgba(34, 197, 94, .6) !important; }

.tile-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .5rem; }
.tile-top-left { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tile-top-right { display: flex; align-items: center; gap: .5rem; white-space: nowrap; line-height: 1; }

.vibe-label {
    display: inline-flex;
    align-items: center;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .75rem;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .05);
    white-space: nowrap;
}

.score-pill {
    display: inline-flex;
    align-items: center;
    padding: .2rem .5rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: .78rem;
    background: var(--lamp-gold, #ffd700);
    color: #111;
}

.distance-pill {
    display: inline-flex;
    align-items: center;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .75rem;
    border: 1px solid rgba(255, 255, 255, .2);
    opacity: .85;
}

.tile-title { font-size: 1.05rem; font-weight: 700; line-height: 1.2; margin: 0; }
.tile-sub { margin: .25rem 0 .6rem; opacity: .8; font-size: .9rem; line-height: 1.3; }
.tile-tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.tile-badge {
    position: absolute;
    right: .6rem;
    bottom: .5rem;
    font-size: .72rem;
    font-weight: 700;
    padding: .1rem .5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(0, 0, 0, .35);
}
.tile-badge.saved { color: #4ade80; border-color: rgba(34, 197, 94, .5); }
.tile-badge.dismissed { color: #fb7185; border-color: rgba(244, 63, 94, .5); }

/* the page's own sizes (these were style="" attributes) */
.state-select { max-width: 9.5rem; }
.sort-select { width: 10.5rem; }
.offcanvas.hpn-offcanvas { width: min(680px, 90vw); }

/* the people cards and a person's panel */
.person-thumb { width: 80px; height: 80px; object-fit: cover; }
.person-avatar-lg { width: 120px; height: 120px; object-fit: cover; }
.person-headline { white-space: normal; line-height: 1.2; }
.person-expl { opacity: .8; }
.shared-event-title { font-size: .95rem; }
.shared-event-type { font-size: .65rem; }
.shared-event-city { max-width: 80px; }
.why-match { background: rgba(255, 255, 255, .05); border-left: 3px solid #ff5a82; }