310 lines
6.7 KiB
CSS
310 lines
6.7 KiB
CSS
.nexus-search-container {
|
|
position: relative;
|
|
width: 100%;
|
|
max-width: 600px;
|
|
margin: 1.5rem auto;
|
|
font-family: 'Inter', sans-serif;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.search-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: #121212;
|
|
border: 1px solid rgba(138, 43, 226, 0.4); /* Neon fiolet border on blur */
|
|
border-radius: 14px;
|
|
padding: 0.65rem 1.1rem;
|
|
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 8px rgba(138, 43, 226, 0.1);
|
|
}
|
|
|
|
/* Focused state: glowing neon green border */
|
|
.nexus-search-container.focused .search-wrapper {
|
|
background-color: #181818;
|
|
border-color: #00ff7f; /* Neon green focus */
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 255, 127, 0.35);
|
|
}
|
|
|
|
.search-icon-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-right: 0.85rem;
|
|
}
|
|
|
|
.nexus-icon {
|
|
color: rgba(255, 255, 255, 0.45);
|
|
font-size: 1.25rem;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.nexus-search-container.focused .nexus-icon {
|
|
color: #00ff7f;
|
|
}
|
|
|
|
.nexus-search-input {
|
|
flex: 1;
|
|
background: transparent;
|
|
border: none;
|
|
color: #ffffff;
|
|
font-size: 1rem;
|
|
font-weight: 400;
|
|
outline: none;
|
|
padding: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.nexus-search-input::placeholder {
|
|
color: rgba(255, 255, 255, 0.35);
|
|
font-style: italic;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.nexus-search-container.focused .nexus-search-input::placeholder {
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
/* Pulsing neon-green AI status indicator */
|
|
.ai-status-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 0 0.75rem;
|
|
}
|
|
|
|
.ai-pulse-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
background-color: #00ff7f;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
position: relative;
|
|
box-shadow: 0 0 8px #00ff7f;
|
|
}
|
|
|
|
.ai-pulse-dot::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
background-color: #00ff7f;
|
|
border-radius: 50%;
|
|
z-index: -1;
|
|
animation: pulse 2s infinite ease-in-out;
|
|
}
|
|
|
|
.clear-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
font-size: 1.5rem;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
padding: 0 0.25rem;
|
|
margin-left: 0.5rem;
|
|
transition: color 0.2s ease, transform 0.2s ease;
|
|
}
|
|
|
|
.clear-btn:hover {
|
|
color: #ff3b30;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* Frosted glass results container */
|
|
.search-dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 8px);
|
|
left: 0;
|
|
right: 0;
|
|
background: rgba(18, 18, 18, 0.82);
|
|
backdrop-filter: blur(18px) saturate(160%);
|
|
-webkit-backdrop-filter: blur(18px) saturate(160%);
|
|
border: 1px solid rgba(138, 43, 226, 0.35);
|
|
border-radius: 14px;
|
|
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(138, 43, 226, 0.15);
|
|
max-height: 420px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: rgba(138, 43, 226, 0.4) transparent;
|
|
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
.search-dropdown::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.search-dropdown::-webkit-scrollbar-thumb {
|
|
background: rgba(138, 43, 226, 0.4);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.search-dropdown::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(0, 255, 127, 0.5);
|
|
}
|
|
|
|
/* In-flight spinners */
|
|
.neon-spinner {
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 2px solid rgba(0, 255, 127, 0.15);
|
|
border-top: 2px solid #00ff7f;
|
|
border-right: 2px solid #8a2be2;
|
|
border-radius: 50%;
|
|
animation: spin 0.75s linear infinite;
|
|
}
|
|
|
|
.neon-spinner-large {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: 3px solid rgba(138, 43, 226, 0.15);
|
|
border-top: 3px solid #8a2be2;
|
|
border-right: 3px solid #00ff7f;
|
|
border-radius: 50%;
|
|
animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.dropdown-state-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 2.5rem 1.5rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.state-text {
|
|
font-size: 0.95rem;
|
|
color: rgba(255, 255, 255, 0.65);
|
|
font-weight: 300;
|
|
}
|
|
|
|
.error-icon, .empty-icon {
|
|
font-size: 2rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.error-icon {
|
|
color: #ff3b30;
|
|
text-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
|
|
}
|
|
|
|
.empty-icon {
|
|
color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
/* Results Cards list */
|
|
.dropdown-results-list {
|
|
padding: 0.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.result-card {
|
|
padding: 0.95rem 1.1rem;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
border: 1px solid rgba(255, 255, 255, 0.04);
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.result-card:hover {
|
|
background: rgba(138, 43, 226, 0.08);
|
|
border-color: rgba(138, 43, 226, 0.35);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.result-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 0.5rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.relevance-badge {
|
|
background: rgba(0, 255, 127, 0.15);
|
|
color: #00ff7f;
|
|
border: 1px solid rgba(0, 255, 127, 0.3);
|
|
border-radius: 6px;
|
|
padding: 0.15rem 0.45rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
text-shadow: 0 0 4px rgba(0, 255, 127, 0.3);
|
|
}
|
|
|
|
.source-title {
|
|
color: rgba(255, 255, 255, 0.5);
|
|
max-width: 60%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.source-title strong {
|
|
color: rgba(255, 255, 255, 0.85);
|
|
}
|
|
|
|
.result-snippet {
|
|
font-size: 0.88rem;
|
|
line-height: 1.45;
|
|
color: rgba(255, 255, 255, 0.78);
|
|
font-weight: 300;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Markup highlights */
|
|
::deep mark.search-highlight {
|
|
background: rgba(0, 255, 127, 0.22);
|
|
color: #00ff7f;
|
|
border-bottom: 1px solid rgba(0, 255, 127, 0.55);
|
|
padding: 0.05rem 0.15rem;
|
|
border-radius: 3px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes pulse {
|
|
0% {
|
|
transform: scale(1);
|
|
box-shadow: 0 0 0 0 rgba(0, 255, 127, 0.7);
|
|
}
|
|
70% {
|
|
transform: scale(1.6);
|
|
box-shadow: 0 0 0 6px rgba(0, 255, 127, 0);
|
|
}
|
|
100% {
|
|
transform: scale(1);
|
|
box-shadow: 0 0 0 0 rgba(0, 255, 127, 0);
|
|
}
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|