/* dist/assets/lab-premium.css — Horizontal scroll card enhancements */

/* ── Card elevation ─────────────────────────────────────────────── */
.lab-item {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
    border-radius: 14px;
    background: #05070a;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ── Gradient overlay ───────────────────────────────────────────── */
.lab-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 7, 10, 0.75) 75%, rgba(5, 7, 10, 0.95) 100%);
    z-index: 1;
    opacity: 0.75;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.lab-item:hover {
    transform: translateY(-4px) scale(1.01) !important;
    border-color: rgba(239, 206, 160, 0.35) !important;
    box-shadow:
        inset 0 1px 0 rgba(239, 206, 160, 0.2),
        0 18px 36px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(239, 206, 160, 0.08) !important;
}

.lab-item:hover::before {
    opacity: 0.9;
    background: linear-gradient(180deg, transparent 15%, rgba(5, 7, 10, 0.88) 100%);
}

/* ── Media as background fill ───────────────────────────────────── */
.lab-item .lab-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto !important;
    border: none !important;
    z-index: 0;
    margin: 0;
}

.lab-item .lab-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease !important;
    filter: saturate(0.85) contrast(1.05) brightness(0.88);
}

.lab-item:hover .lab-media img {
    transform: scale(1.06) !important;
    filter: saturate(1.15) contrast(1.15) brightness(1.05) !important;
}

/* ── Content at bottom ──────────────────────────────────────────── */
.lab-item .lab-content {
    position: relative;
    z-index: 2;
    padding: 1.6rem 1.1rem 1.2rem !important;
    opacity: 0.88;
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(10px);
    margin-top: auto;
}

.lab-item:hover .lab-content {
    opacity: 1;
    transform: translateY(0);
}

.lab-content span.mono:first-child {
    display: block;
    font-size: 0.65rem !important;
    color: rgba(239, 206, 160, 0.65) !important;
    margin-bottom: 0.45rem;
    letter-spacing: 0.15em !important;
    transform: translateY(4px);
    transition: all 0.4s ease;
}

.lab-item:hover .lab-content span.mono:first-child {
    transform: translateY(0);
    color: rgba(239, 206, 160, 1) !important;
}

.lab-content p {
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.85rem 0;
    text-wrap: balance;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* ── CTA ────────────────────────────────────────────────────────── */
.lab-item .lab-cta.mono {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.42rem 0.85rem;
    border-radius: 4px;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.lab-item .lab-cta.mono::after {
    content: "→";
    margin-left: 0.45rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lab-item:hover .lab-cta.mono {
    background: rgba(239, 206, 160, 0.12);
    border-color: rgba(239, 206, 160, 0.5);
    color: rgb(239, 206, 160) !important;
    box-shadow: 0 3px 10px rgba(239, 206, 160, 0.12);
}

.lab-item:hover .lab-cta.mono::after {
    transform: translateX(3px);
}

/* ── Experiment number badge ────────────────────────────────────── */
.lab-exp-number {
    z-index: 4 !important;
}

/* ── Stack badge ────────────────────────────────────────────────── */
.lab-stack-badge {
    z-index: 2;
    position: relative;
}

/* ── Vignette overlay ───────────────────────────────────────────── */
.lab-item::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.lab-item:hover::after {
    opacity: 0.25;
}

/* ── Info card override ─────────────────────────────────────────── */
.lab-item-info::before,
.lab-item-info::after {
    display: none;
}

.lab-item-info .lab-content {
    opacity: 1;
    transform: none;
    padding: 0 !important;
}