/**Layer 93: Advanced Search*/
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    transition: all .2s
}

.search-input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, .15)
}

.search-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    color: #9ca3af
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #1f2937
}

.filter-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    border-radius: 50%;
    transition: background .2s
}

.filter-toggle:hover {
    background: #f3f4f6
}

.filter-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1);
    z-index: 100;
    border: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.filter-panel.hidden {
    display: none
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.25rem
}

.filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1);
    z-index: 90;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    max-height: 400px;
    overflow-y: auto
}

.search-results.hidden {
    display: none
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background .1s;
    border-bottom: 1px solid #f3f4f6
}

.search-result-item:last-child {
    border-bottom: none
}

.search-result-item:hover {
    background: #f9fafb
}

.result-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center
}

.result-content {
    flex: 1
}

.result-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #111827;
    line-height: 1.4
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.75rem
}

.result-category {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase
}

.result-date {
    color: #9ca3af
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    font-style: italic
}