/* Biomarker List & Search Styles - Updated with Grid & Glassmorphism */

/* Section Layout */
.biomarkers-section {
    padding: 60px 0;
    font-family: 'Inter', sans-serif;
    /* Background kept white for the section itself */
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.biomarkers-card {
    background: linear-gradient(90deg, #0A2468, #133B9E);
    border-radius: 32px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.container {
    position: relative;
    z-index: 1;
}

/* Heading Style */
.biomarkers-list-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    /* Increased from 36px */
    /* Using White for Title on Dark Background */
    color: #FFFFFF;
    margin-bottom: 0;
    /* Margin handled by row wrapper */
    margin-top: 0;
    /* text-align: center; removed */
}

.biomarkers-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}


/* Search Bar */
/* Search Bar */
.biomarker-search-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
}

.search-input-container {
    position: relative;
    width: 100%;
    max-width: 320px;
}

/* Icon Outside */
.search-icon-outside {
    /* Dimensions handled by SVG attr */
    flex-shrink: 0;
    opacity: 0.9;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    /* Removed extra left padding */
    font-size: 15px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
    /* Glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #FFFFFF;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Category Filters (Chips) */
.category-filters-scroll {
    width: 100%;
    margin-bottom: 32px;
}

.category-filters {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
    /* Allow wrapping to multiple rows */
}

.cat-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    /* Subtle fill for readability */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #FFFFFF;
    /* White outline */
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    /* White text */
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.cat-filter:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: #FFFFFF;
}

.cat-filter.active {
    background: linear-gradient(135deg, #FFB04E 0%, #F97316 100%);
    /* Orange Gradient */
    color: #FFFFFF;
    border-color: transparent;
    /* No border for active filled state */
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.cat-filter .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
}

.cat-filter.active .count {
    background: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

/* Biomarkers List Grid */
.biomarkers-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* Responsive grid */
    gap: 20px;
    min-height: 200px;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
.glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Header inside card */
.val-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.val-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: #37C384;
    /* Brand Green */
    margin: 0;
    line-height: 1.3;
    padding-right: 12px;
}

.val-icon-wrap {
    color: #60A5FA;
    /* Brand Blue Lighter for Dark Mode */
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

.glass-card:hover .val-icon-wrap {
    opacity: 1;
    transform: translateX(2px) translateY(-2px);
}

.val-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #CBD5E1;
    /* Slate-300 for readability */
    margin: 0;
    flex-grow: 1;
}

/* Gradient shimmer on hover */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    /* Thinner top highlight */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-card:hover::before {
    opacity: 1;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    color: #64748B;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
}

/* Responsive - Mobile Optimization */
@media (max-width: 768px) {
    .biomarkers-section {
        padding: 30px 0;
    }

    .biomarkers-card {
        padding: 30px 20px;
        border-radius: 24px;
        margin: 0 -5px;
    }

    /* Title - Larger and more prominent */
    .biomarkers-list-title {
        font-size: 2.5rem;
        line-height: 1.15;
        margin-bottom: 8px;
    }

    /* Header row - Stack vertically on mobile */
    .biomarkers-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 24px;
    }

    /* Search wrapper - Full width with icon */
    .biomarker-search-wrapper {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }

    .search-icon-outside {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .search-input-container {
        max-width: none;
        flex: 1;
    }

    .search-input {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.12);
    }

    .search-input::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    /* Category filters - Horizontal Scroll */
    .category-filters-scroll {
        margin-bottom: 24px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        /* Space for scrollbar */
        margin-right: -20px;
        /* Bleed to right edge */
        padding-right: 20px;
    }

    .category-filters {
        display: flex;
        flex-wrap: nowrap;
        /* Prevent wrapping for scroll */
        gap: 10px;
        padding-right: 20px;
        /* Spacer at end */
    }

    .cat-filter {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 18px;
        gap: 6px;
    }

    .cat-filter .count {
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 8px;
    }

    /* Glass cards - Full width stacked */
    .biomarkers-list-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .glass-card {
        padding: 20px;
        border-radius: 14px;
    }

    .val-name {
        font-size: 16px;
    }

    .val-desc {
        font-size: 13px;
        line-height: 1.5;
    }

    .val-header {
        margin-bottom: 10px;
    }

    /* No results message */
    .no-results {
        padding: 30px 20px;
        font-size: 14px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .biomarkers-card {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .biomarkers-list-title {
        font-size: 2rem;
    }

    .cat-filter {
        padding: 7px 12px;
        font-size: 12px;
    }

    .glass-card {
        padding: 16px;
    }

    .val-name {
        font-size: 15px;
    }

    .val-desc {
        font-size: 12px;
    }
}