/* =========================================================
   BLOOOW — Analytics & Engagement V1
   Public engagement controls for Events + Regulated Offers.
========================================================= */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.discovery-index-page .discovery-card-engagement {
    gap: 8px;
}

.discovery-index-page .discovery-engagement-cluster {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.discovery-index-page .discovery-engagement-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    color: var(--muted);
    font-size: .64rem;
    font-weight: 560;
    line-height: 1;
}

.discovery-index-page .discovery-engagement-stat svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.discovery-index-page.events-page .event-card-meta {
    justify-content: flex-start;
}

.discovery-index-page.events-page .discovery-card-state {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    color: var(--muted-strong);
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discovery-index-page.offers-page .offer-card-meta {
    justify-content: flex-start;
}

.discovery-index-page.offers-page .offer-card-meta .discovery-engagement-cluster {
    width: 100%;
    justify-content: flex-start;
}

/* Detail page engagement strip */
.discovery-detail-page .discovery-detail-engagement {
    margin: 14px 0 18px;
    padding: 9px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.discovery-detail-page .discovery-detail-stat,
.discovery-detail-page .discovery-engagement-action {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--muted-strong);
    font: inherit;
    font-size: .72rem;
    line-height: 1;
}

.discovery-detail-page .discovery-detail-stat {
    padding-left: 2px;
}

.discovery-detail-page .discovery-detail-stat svg,
.discovery-detail-page .discovery-engagement-action svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.discovery-detail-page .discovery-detail-stat strong,
.discovery-detail-page .discovery-engagement-action strong {
    color: var(--text);
    font-size: .75rem;
    font-weight: 800;
}

.discovery-detail-page .discovery-engagement-form {
    margin: 0;
}

.discovery-detail-page .discovery-engagement-action {
    border-color: var(--line);
    background: var(--surface);
    cursor: pointer;
    transition:
        border-color 150ms ease,
        background 150ms ease,
        color 150ms ease,
        transform 150ms ease;
}

.discovery-detail-page .discovery-engagement-action:hover,
.discovery-detail-page .discovery-engagement-action:focus-visible {
    border-color: var(--blue-line);
    background: var(--blue-soft);
    color: var(--blue-strong);
}

.discovery-detail-page .discovery-engagement-action:active {
    transform: translateY(1px);
}

.discovery-detail-page .discovery-engagement-action.is-active {
    border-color: var(--blue-line);
    background: var(--blue-soft);
    color: var(--blue-strong);
}

.discovery-detail-page .discovery-engagement-action.is-active strong {
    color: var(--blue-strong);
}

.discovery-detail-page .discovery-engagement-action[disabled] {
    cursor: wait;
    opacity: .62;
}

@media (max-width: 640px) {
    .discovery-index-page .discovery-engagement-cluster {
        gap: 8px;
    }

    .discovery-index-page .discovery-engagement-stat {
        font-size: .61rem;
    }

    .discovery-index-page .discovery-engagement-stat svg {
        width: 12px;
        height: 12px;
        flex-basis: 12px;
    }

    .discovery-detail-page .discovery-detail-engagement {
        gap: 6px;
    }

    .discovery-detail-page .discovery-detail-stat,
    .discovery-detail-page .discovery-engagement-action {
        min-height: 34px;
        padding-inline: 8px;
        font-size: .68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .discovery-detail-page .discovery-engagement-action {
        transition: none;
    }
}

.discovery-detail-page .discovery-engagement-action.is-active svg {
    fill: currentColor;
    stroke: currentColor;
}
