/* Search Results Components */
.search-results-container {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.results-header {
    padding: 0 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 74, 153, 0.1);
    margin-bottom: 1.5rem;
}

.results-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #004a99;
    margin: 0;
}

.relevance-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #004a99;
    font-size: 0.9rem;
    background: rgba(0, 74, 153, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Vertical Results Layout */
.test-results-vertical {
    display: grid;
    gap: 1rem;
}

.test-row {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e3e8f1;
    transition: all 0.2s ease;
}

.test-row:hover {
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.1);
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    cursor: pointer;
}

.test-title-group {
    flex-grow: 1;
    margin-right: 1rem;
}

.test-name {
    color: #004a99;
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.test-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.test-number, .cpt-code {
    background: rgba(0, 74, 153, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    color: #004a99;
    display: inline-flex;
    align-items: center;
}

.more-button {
    background: none;
    border: none;
    color: #004a99;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
}

.more-button:hover {
    background: rgba(0, 74, 153, 0.05);
}

.more-button i {
    width: 18px;
    height: 18px;
}

.test-content {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid #f0f4f9;
    display: none;
}

.test-description {
    color: #444;
    line-height: 1.6;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.specimen-details h5 {
    color: #004a99;
    margin: 1.5rem 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.specimen-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.specimen-item {
    background: rgba(0, 74, 153, 0.03);
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.specimen-item i {
    color: #0084c5;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    max-width: 600px;
    margin: 2rem auto;
}

.no-results h3 {
    color: #004a99;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-results ul {
    list-style: none;
    padding: 0;
    max-width: 400px;
    margin: 1rem auto;
    text-align: left;
}

.no-results ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.no-results ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0084c5;
    font-size: 1.2rem;
    line-height: 1;
}

/* Remove old horizontal scroll styles */
.test-results-horizontal-scroll,
.scroll-nav,
.relevance-score,
.score-progress {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .test-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .more-button {
        width: 100%;
        justify-content: space-between;
    }
    
    .test-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .specimen-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
