.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding-top: 10vh;
}

.search-modal.hidden {
    display: none;
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    gap: 12px;
}

.search-input-wrapper .search-icon {
    color: #9ca3af;
    flex-shrink: 0;
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    font-family: inherit;
}

#search-input::placeholder {
    color: #9ca3af;
}

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.search-results {
    overflow-y: auto;
    padding: 12px;
    flex: 1;
}

.search-hint,
.search-loading,
.search-no-results,
.search-error {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.search-result-item a:hover {
    background: #f9fafb;
}

.result-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #e91e8c;
    margin-bottom: 4px;
}

.result-title {
    display: block;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    font-size: 15px;
}

.result-excerpt {
    display: block;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .search-modal {
        padding-top: 0;
    }

    .search-container {
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
}
