/* Site Search Modal Styles - Simplified like Google/Apple */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.search-modal.active {
    display: block;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.search-modal-content {
    position: relative;
    max-width: 600px;
    margin: 15vh auto 0;
    background: var(--bg-primary, #ffffff);
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.search-input {
    flex: 1;
    font-size: 16px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary, #212529);
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-secondary, #9e9e9e);
}

.search-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary, #9e9e9e);
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.search-close:hover {
    background: var(--bg-tertiary, #f5f5f5);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--border-color, #e0e0e0);
    border-radius: 3px;
}

.search-result-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--border-color, #f0f0f0);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
    background: var(--bg-secondary, #f8f9fa);
}

.search-result-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #212529);
    margin: 0 0 4px 0;
}

.search-result-url {
    font-size: 12px;
    color: var(--brand-primary, #1a73e8);
}

.search-result-excerpt {
    display: none;
}

.search-result-type {
    display: none;
}

.search-result-content {
    width: 100%;
}

.search-empty,
.search-loading,
.search-error {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary, #757575);
    font-size: 14px;
}

.search-loading i {
    font-size: 20px;
    margin-bottom: 8px;
}

.search-footer {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-modal-content {
        margin: 10vh 10px 0;
        border-radius: 16px;
    }
    
    .search-input {
        font-size: 16px;
    }
}
