/* ==========================================================================
   Liquid glass for the Exhibition page (exhibition.html only).
   Loaded after style.css; remove the <link> to restore the previous look.
   Tuned to be very clear, so the starry sky shows through: the columns
   blur it only slightly (1px), and the notes add a faint tint and no blur
   of their own, which also keeps them cheap to scroll.
   ========================================================================== */

.exhibition-page {
    --xg-ink: #0f172a;
    --xg-text: #e8edf6;
    --xg-muted: rgba(203, 213, 225, 0.78);
    --xg-edge: rgba(255, 255, 255, 0.12);
    --xg-edge-top: rgba(255, 255, 255, 0.24);
    --xg-highlight: rgba(255, 255, 255, 0.38);
    --xg-link: #c4b5fd;       /* the purple of research strand 03 on the homepage */
    --xg-link-hover: #ddd6fe;
    --xg-spring: cubic-bezier(0.32, 1.32, 0.48, 1);
}

/* ---- title capsule ---------------------------------------------------- */

.exhibition-titlebar-wrap {
    position: sticky;
    top: 14px;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 0 12px;
    pointer-events: none;
}

.exhibition-titlebar {
    pointer-events: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    padding: 10px 30px 11px;
    border-radius: 999px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
        rgba(8, 12, 28, 0.62);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset 0 -1px 1px rgba(255, 255, 255, 0.06),
        0 18px 50px rgba(5, 10, 25, 0.32);
    transition: transform 300ms var(--xg-spring), background 200ms ease;
}

.exhibition-titlebar::before,
.exhibition-thread::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(120% 70% at 12% -20%, rgba(255, 255, 255, 0.12), transparent 55%),
        radial-gradient(80% 60% at 100% 120%, rgba(147, 197, 253, 0.06), transparent 60%);
    mix-blend-mode: screen;
}

.exhibition-titlebar:hover {
    transform: translateY(1px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
        rgba(8, 12, 28, 0.62);
}

.exhibition-titlebar:focus-visible {
    outline: 2px solid #6ee7b7;
    outline-offset: 3px;
}

.exhibition-titlebar-title {
    position: relative;
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(8, 14, 30, 0.45);
}

.exhibition-titlebar-by {
    position: relative;
    margin-top: 2px;
    color: var(--xg-muted);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
}

/* ---- board -------------------------------------------------------------- */

.exhibition-page .exhibition-scroll-hint {
    color: rgba(203, 213, 225, 0.68);
}

.exhibition-page .exhibition-board {
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.exhibition-page .exhibition-board::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.exhibition-page .exhibition-board::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); }

/* each column is a pane of frosted glass */
.exhibition-page .exhibition-thread {
    position: relative;
    border: 1px solid var(--xg-edge);
    border-top-color: var(--xg-edge-top);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015) 40%, rgba(255, 255, 255, 0)),
        rgba(16, 22, 46, 0.08);
    -webkit-backdrop-filter: blur(1px) saturate(140%);
    backdrop-filter: blur(1px) saturate(140%);
    box-shadow:
        inset 0 1px 0 var(--xg-highlight),
        inset 0 -1px 1px rgba(255, 255, 255, 0.04),
        0 22px 50px rgba(5, 10, 25, 0.18);
}

.exhibition-page .exhibition-thread > * {
    position: relative;
    z-index: 1;
}

.exhibition-page .exhibition-thread-header {
    padding: 1rem 1.1rem 0.9rem;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.exhibition-page .exhibition-thread-header h2 {
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(8, 14, 30, 0.4);
}

/* the count sits in a small white pill, like the selected tab on the homepage */
.exhibition-page .exhibition-thread-header span {
    min-width: 2rem;
    padding: 0.12rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #eef2f8);
    box-shadow: 0 4px 12px rgba(8, 14, 30, 0.28), inset 0 -1px 2px rgba(15, 23, 42, 0.08);
    color: var(--xg-ink);
    font-size: 0.78rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.exhibition-page .exhibition-sticker-list {
    gap: 0.75rem;
    padding: 0.9rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

/* notes: clear glass resting on the column */
.exhibition-page .exhibition-sticker {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-top-color: rgba(255, 255, 255, 0.26);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 6px 18px rgba(5, 10, 25, 0.1);
    color: var(--xg-text);
    text-shadow: 0 1px 2px rgba(8, 14, 30, 0.6);
    transition: background 200ms ease, transform 300ms var(--xg-spring);
}

.exhibition-page .exhibition-sticker:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
    transform: translateY(-1px);
}

.exhibition-page .exhibition-sticker-date {
    color: var(--xg-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.exhibition-page .exhibition-sticker-body strong { color: #ffffff; }

/* Every text link on this page, now and later, uses the strand-03 purple.
   The preview cards (also links) and the title capsule keep their own look. */
.exhibition-page .exhibition-main a:not(.exhibition-video) {
    color: var(--xg-link);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(196, 181, 253, 0.45);
    text-underline-offset: 2px;
}
.exhibition-page .exhibition-main a:not(.exhibition-video):hover {
    color: var(--xg-link-hover);
    text-decoration-color: rgba(221, 214, 254, 0.7);
}

.exhibition-page .exhibition-file-drawer-note { color: rgba(226, 232, 240, 0.82); }

/* ideas: small glass chips */
.exhibition-page .exhibition-idea {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-top-color: rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 12px rgba(5, 10, 25, 0.1);
    color: var(--xg-text);
    text-shadow: 0 1px 2px rgba(8, 14, 30, 0.6);
}
.exhibition-page .exhibition-idea span { color: var(--xg-muted); }

/* ---- media previews -------------------------------------------------- */

.exhibition-page .exhibition-video {
    border-radius: 14px;
    background: rgba(5, 10, 25, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 24px rgba(5, 10, 25, 0.35);
}

.exhibition-page .exhibition-video-play svg {
    fill: var(--xg-ink);
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    backdrop-filter: blur(8px) saturate(160%);
    box-shadow: inset 0 1px 0 #ffffff, 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 300ms var(--xg-spring);
}

.exhibition-page .exhibition-video-duration {
    border-radius: 999px;
    padding: 0.14rem 0.55rem;
    background: rgba(15, 23, 42, 0.42);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    backdrop-filter: blur(8px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Screenshots keep their own shape (no 16:9 crop) and open full size on click. */
.exhibition-page .exhibition-shot {
    aspect-ratio: auto;
    background: transparent;
}
.exhibition-page .exhibition-shot img {
    height: auto;
    transition: transform 300ms var(--xg-spring), filter 200ms ease;
}
.exhibition-page a.exhibition-shot:hover img {
    transform: scale(1.02);
    filter: brightness(1.06);
}

/* ---- "Vibecoding everyday": the cards, two side by side ---------------- */

/* the column title sits in the middle of its header line; the count stays right */
.exhibition-page .exhibition-thread-wide .exhibition-thread-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}
.exhibition-page .exhibition-thread-wide .exhibition-thread-header h2 {
    grid-column: 2;
    text-align: center;
}
.exhibition-page .exhibition-thread-wide .exhibition-thread-header span {
    grid-column: 3;
    justify-self: end;
}

.exhibition-page .vibe-feed-list { scrollbar-gutter: stable; }

/* without the layout script: plain rows of two, newest first */
.vibe-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(9.5rem, calc((100% - 0.75rem) / 2)), 1fr));
    align-items: start;
    gap: 0.75rem;
}

/* with it: each card goes into whichever column is shorter */
.vibe-feed.is-masonry {
    display: block;
    position: relative;
}
.vibe-feed.is-masonry > .exhibition-sticker {
    position: absolute;
}

/* the cards look exactly like the other columns' notes; a preview is at most
   its original size and otherwise fills the card's width */
.exhibition-page .vibe-feed .exhibition-video {
    container: vibe-preview / inline-size;
    width: calc(0.92 * (var(--exhibition-col) * 0.75 - 3.6rem - 4px));
    max-width: 100%;
}

/* on smaller previews the play button and label shrink a little,
   and on the smallest the label moves up so the two never touch */
@container vibe-preview (max-width: 170px) {
    .exhibition-page .vibe-feed .exhibition-video-play { padding: 0.45rem; }
    .exhibition-page .vibe-feed .exhibition-video-play svg {
        width: 2.1rem;
        height: 2.1rem;
        padding: 0.55rem 0.46rem 0.55rem 0.64rem;
    }
    .exhibition-page .vibe-feed .exhibition-video-duration {
        right: 0.45rem;
        bottom: 0.65rem;
        padding: 0.1rem 0.45rem;
        font-size: 0.64rem;
    }
}
@container vibe-preview (max-width: 146px) {
    .exhibition-page .vibe-feed .exhibition-video-duration {
        top: 0.45rem;
        bottom: auto;
    }
}

/* ---- small screens and accessibility -------------------------------- */

@media (max-width: 767px) {
    .exhibition-titlebar-wrap { top: 10px; padding: 0 10px; }
    .exhibition-titlebar { border-radius: 22px; padding: 9px 18px 10px; }
    .exhibition-titlebar-title { font-size: 0.95rem; }
}

@media (prefers-reduced-transparency: reduce) {
    .exhibition-titlebar,
    .exhibition-page .exhibition-thread {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(22, 30, 48, 0.96);
    }
}
