/* ── Lab feed page layout ─────────────────────────────────────────────────── */

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 40px;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.lab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1340px;
    margin-bottom: 60px;
    flex-shrink: 0;
}

.lab-brand {
    font-family: "NTBau", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lab-admin-link {
    font-family: "NTBau", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 5px 12px;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.lab-admin-link:hover {
    color: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.35);
}

/* ── Feed ─────────────────────────────────────────────────────────────────── */
/* No gap — sections provide their own internal vertical breathing room.
   max-width aligns with the header and load-more button. */

.lab-feed {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1340px;
    margin-inline: auto;
}

/* Each section is a full "band" with 100px internal padding above and below.
   The dot-grid background from body flows uninterrupted through this space. */
.lab-feed .insight-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Divider between sections — always visible, full viewport width.
   Rendered as a sibling <hr> so it is never affected by section entrance animation. */
.lab-feed-divider {
    border: none;
    height: 1px;
    background: rgba(162, 162, 162, 0.35);
    width: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    flex-shrink: 0;
}

/* ── Load more ────────────────────────────────────────────────────────────── */

.load-more-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1340px;
    margin-top: 80px;
    margin-bottom: 40px;
}

.load-more-btn {
    font-family: "NTBau", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    background: #e5f100;
    border: none;
    border-radius: 6px;
    padding: 14px 48px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition:
        background 0.18s ease,
        transform 0.12s ease;
}

.load-more-btn:hover {
    background: #f2ff1a;
    transform: translateY(-1px);
}

.load-more-btn:active {
    transform: translateY(0);
    background: #d9e500;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */

.lab-empty {
    font-family: "NTBau", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    margin-top: 80px;
}

.lab-empty a {
    color: rgba(255, 255, 255, 0.55);
}

/* ── Filter bar ───────────────────────────────────────────────────────────── */

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1340px;
    margin-bottom: 48px;
    gap: 16px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.filter-pills {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Each pill is a positioned container for its dropdown */
.filter-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #444444;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    user-select: none;
    font-family: "NTBau", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
    white-space: nowrap;
}

.filter-pill:hover {
    background: #4e4e4e;
    border-color: rgba(255, 255, 255, 0.26);
}

.filter-pill.is-active {
    background: #e5f100;
    border-color: #e5f100;
    color: #1a1a1a;
    font-weight: 500;
}

.fp-label-text {
    pointer-events: none;
}

/* SVG chevron — inherits currentColor from pill, dimmed via opacity */
.fp-chevron {
    display: block;
    flex-shrink: 0;
    opacity: 0.6;
    transition: transform 0.18s ease;
    pointer-events: none;
}

.filter-pill.is-open .fp-chevron {
    transform: rotate(180deg);
}

/* Dropdown panel */
.fp-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 190px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
    z-index: 100;
}

.filter-pill.is-open .fp-dropdown {
    display: block;
}

.fp-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-family: "NTBau", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    transition: background 0.1s ease;
    user-select: none;
}

.fp-option:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.92);
}

.fp-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #e5f100;
    cursor: pointer;
    flex-shrink: 0;
}

.fp-option span {
    pointer-events: none;
}

/* Clear all filters button */
.filter-clear-btn {
    font-family: "NTBau", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.58);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition:
        color 0.15s ease,
        text-decoration-color 0.15s ease;
    white-space: nowrap;
    line-height: 1;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}

.filter-clear-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration-color: rgba(255, 255, 255, 0.4);
}

/* ── Filter empty state ───────────────────────────────────────────────────── */

.filter-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 80px 40px;
    width: 100%;
    max-width: 1340px;
    flex-shrink: 0;
}

.filter-empty-icon {
    animation: filter-icon-in 0.55s cubic-bezier(0.25, 0, 0.25, 1) forwards;
}

@keyframes filter-icon-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 0.45;
        transform: translateY(0) scale(1);
    }
}

.filter-empty-text {
    font-family: "NTBau", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.38);
    text-align: center;
    line-height: 1.5;
}

.filter-reset-btn {
    font-family: "NTBau", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.58);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 5px;
    padding: 9px 22px;
    cursor: pointer;
    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}

.filter-reset-btn:hover {
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.38);
}

/* ── Responsive: tablet (768px – 1279px) ─────────────────────────────────── */

@media (min-width: 768px) and (max-width: 1279px) {
    body {
        padding: 48px 28px;
    }

    .lab-feed .insight-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .lab-header {
        margin-bottom: 48px;
        padding: 0 4px;
    }
}

/* ── Responsive: mobile (0px – 767px) ────────────────────────────────────── */

@media (max-width: 767px) {
    body {
        padding: 28px 12px;
    }

    .filter-pills {
        padding-left: 12px;
        padding-right: 12px;
    }

    .lab-feed .insight-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .lab-header {
        margin-bottom: 36px;
        padding: 0 4px;
    }
}
