/* Prism Search Palette - Spotlight Style UI */

#prism-palette-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    animation: paletteFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#prism-palette-overlay.active {
    display: flex;
}

#prism-palette-container {
    width: 100%;
    max-width: 650px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 
                0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform-origin: top center;
    animation: paletteScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Input Section */
.palette-header {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.palette-search-icon {
    color: var(--accent-primary);
    margin-right: 16px;
    filter: drop-shadow(0 0 8px rgba(var(--accent-primary-rgb), 0.4));
}

#palette-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    outline: none;
    letter-spacing: 0.02em;
}

#palette-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Results Section */
#palette-results {
    max-height: 450px;
    overflow-y: auto;
    padding: 8px;
}

.palette-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    margin-bottom: 2px;
}

.palette-item:hover, .palette-item.selected {
    background: rgba(var(--accent-primary-rgb), 0.15);
    border-color: rgba(var(--accent-primary-rgb), 0.3);
}

.palette-item-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    margin-right: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.palette-item-info {
    flex-grow: 1;
    min-width: 0;
}

.palette-item-title {
    color: white;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.palette-item-subtitle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.palette-item-meta {
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    font-family: var(--font-mono);
    margin-left: 12px;
}

/* Empty State */
.palette-empty {
    padding: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
}

.palette-empty-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Animations */
@keyframes paletteFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes paletteScaleIn {
    from { opacity: 0; transform: scale(0.95) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Custom Scrollbar for Palette */
#palette-results::-webkit-scrollbar {
    width: 4px;
}
#palette-results::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 10px;
}
