.vectorpress-search {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.search-input-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease-out;
    background: #fff;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #666;
    pointer-events: none;
}

.search-input:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 6px 24px rgba(34, 113, 177, 0.2);
    transform: translateY(-1px);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    margin: 20px auto;
}

.loading-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px 0;
}

.search-results {
    margin-top: 20px;
}

.search-summary {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a1a;
}

.summary-heading {
    font-size: 1.2em;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.summary-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.summary-source-link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.summary-source-link:hover {
    text-decoration: underline;
}

.results-divider {
    height: 1px;
    background: #e1e1e1;
    margin: 20px 0;
}

.search-divider {
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.search-result {
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.search-result:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.search-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.result-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.result-text mark {
    background: #fff3cd;
    padding: 2px 0;
    border-radius: 2px;
}

.result-metadata {
    margin-top: 12px;
    color: #666;
    font-size: 13px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.metadata-item {
    display: inline-block;
    margin-right: 12px;
    color: #666;
}

.metadata-divider {
    margin: 0 8px;
    color: #ccc;
}

.result-content {
    line-height: 1.6;
}

.result-content mark {
    background-color: rgba(255, 255, 0, 0.3);
    padding: 2px 0;
}

.result-title {
    margin: 0 0 12px 0;
    font-size: 1.1em;
    line-height: 1.4;
}

.result-title a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-date {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.result-metadata a {
    color: #2271b1;
    text-decoration: none;
}

.result-metadata a:hover {
    text-decoration: underline;
}

.no-results,
.search-error {
    padding: 20px;
    text-align: center;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

.search-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.search-lightbox.active {
    display: block;
}

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

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.lightbox-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.lightbox-header .search-input-container {
    flex: 1;
    margin: 0;
}

.lightbox-close {
    background: none;
    border: none;
    padding: 8px;
    margin-left: 16px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: #1a1a1a;
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
}

.search-lightbox .search-results {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 180px);
}

.search-lightbox .search-input-container {
    margin-bottom: 0;
}
