/* ============================================================
   Absolute Go public portal v2 — Featured / Highlighted events
   Follows the event-v2 M3 look (green primary, Lexend headings,
   Hanken Grotesk body) used by the event show & registration v2
   pages. Consumed by welcome.blade.php and public/event/index.

   Colors come from the shared --agv2-* RGB-triple variables set
   by layouts/public/partials/v2-theme.blade.php (light values on
   :root, dark overrides under .dark), so dark mode works here too.
   ============================================================ */

/* ---- Featured section ---- */

.agv2-featured-section {
    margin-bottom: 2.5rem;
}

/* Mobile grid, horizontal snap rail from tablet/desktop up */
.agv2-featured-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    max-width: 100%;
    overflow-x: visible;
    padding: 0.25rem;
}

.agv2-featured-rail > * {
    min-width: 0;
}

@media (min-width: 768px) {
    .agv2-featured-rail {
        display: flex;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0.25rem 0.25rem 0.75rem;
        scrollbar-width: thin;
        scrollbar-color: rgb(var(--agv2-outline-variant)) transparent;
    }

    .agv2-featured-rail::-webkit-scrollbar {
        height: 6px;
    }

    .agv2-featured-rail::-webkit-scrollbar-thumb {
        background: rgb(var(--agv2-outline-variant));
        border-radius: 9999px;
    }

    .agv2-featured-rail::-webkit-scrollbar-track {
        background: transparent;
    }

    .agv2-featured-rail > * {
        flex: 0 0 calc((100% - 2.5rem) / 3);
        flex-basis: calc((100% - 2.5rem) / 3);
        scroll-snap-align: start;
    }
}

/* ---- Featured card accents ---- */

.agv2-featured-card {
    position: relative;
    border: 1px solid rgb(var(--agv2-primary) / 0.3);
    box-shadow: 0 1px 3px rgb(var(--agv2-on-background) / 0.08);
    transition: box-shadow 200ms ease, border-color 200ms ease;
}

.agv2-featured-card:hover {
    border-color: rgb(var(--agv2-primary));
    box-shadow: 0 10px 25px rgb(var(--agv2-primary) / 0.15);
}

.agv2-featured-ribbon,
.agv2-highlighted-badge {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-family: 'Lexend', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    pointer-events: none;
}

.agv2-featured-ribbon {
    background: rgb(var(--agv2-primary));
    color: rgb(var(--agv2-on-primary));
}

.agv2-featured-ribbon svg,
.agv2-highlighted-badge svg {
    width: 0.75rem;
    height: 0.75rem;
}

/* ---- Highlighted card accents (inside normal listings) ---- */

.agv2-highlighted-card {
    position: relative;
    border: 1px solid rgb(var(--agv2-primary) / 0.4);
    box-shadow: 0 0 0 2px rgb(var(--agv2-primary-fixed) / 0.35);
}

.agv2-highlighted-badge {
    background: rgb(var(--agv2-primary-fixed));
    color: rgb(var(--agv2-on-primary-container));
}

.dark .agv2-highlighted-badge {
    background: rgb(var(--agv2-primary) / 0.25);
    color: rgb(var(--agv2-primary-fixed));
}

@media (prefers-reduced-motion: reduce) {
    .agv2-featured-card,
    .agv2-featured-rail {
        transition: none;
        scroll-behavior: auto;
    }
}
