/* Vani AI Branding & Styling */

:root {
    --vani-gradient: linear-gradient(135deg, #fa1922 0%, #ff6b6b 100%);
    --vani-bg: rgba(255, 255, 255, 0.95);
    --vani-shadow: 0 8px 32px rgba(250, 25, 34, 0.15);
    --ai-accent: #6c5ce7;
}

.search-container-box {
    background: var(--vani-bg);
    border-radius: 15px;
    box-shadow: var(--vani-shadow);
    border: 1px solid rgba(250, 25, 34, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 15px;
    height: 100%;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.search-header h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 16px;
    color: #333;
    letter-spacing: 1px;
}

.search-badge {
    background: var(--vani-gradient);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 5px 12px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.search-input-group:focus-within {
    border-color: #fa1922;
    box-shadow: 0 0 0 3px rgba(250, 25, 34, 0.05);
}

.search-icon-left {
    color: #adb5bd;
    margin-right: 10px;
}

#ai-search-input {
    border: none;
    background: none;
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
    outline: none;
    color: #495057;
}

.icon-btn {
    background: none;
    border: none;
    color: #fa1922;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    margin-left: 5px;
}

.icon-btn:hover {
    background: rgba(250, 25, 34, 0.05);
    transform: scale(1.1);
}

/* AI Sparkle Animation */
.ai-sparkle {
    font-size: 40px;
    color: #fa1922;
    margin-bottom: 15px;
    animation: pulse-sparkle 2s infinite;
}

@keyframes pulse-sparkle {
    0% { transform: scale(1); opacity: 0.8; text-shadow: 0 0 0px rgba(250, 25, 34, 0); }
    50% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 15px rgba(250, 25, 34, 0.4); }
    100% { transform: scale(1); opacity: 0.8; text-shadow: 0 0 0px rgba(250, 25, 34, 0); }
}

.search-results-area {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.search-results-area::-webkit-scrollbar {
    width: 4px;
}

.search-results-area::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 10px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 5px;
}

.empty-state span {
    font-size: 11px;
    opacity: 0.6;
}

/* AI Result Cards */
.ai-result-card {
    display: flex;
    padding: 12px;
    background: white;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: background 0.2s;
    animation: slideIn 0.3s ease-out;
}

.ai-result-card:hover {
    background: #fff5f5;
}

.ai-card-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 8px;
    margin-right: 12px;
}

.ai-card-info {
    flex: 1;
}

.ai-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-card-spec {
    font-size: 11px;
    color: #666;
}

.ai-card-part {
    font-weight: 900;
    color: #fa1922;
    font-size: 10px;
    margin-right: 5px;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Voice Listening State */
.listening-now {
    animation: mic-pulse 1.5s infinite;
    color: #fa1922 !important;
}

@keyframes mic-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(250, 25, 34, 0.4); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(250, 25, 34, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(250, 25, 34, 0); }
}

.vani-thinking {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    color: #666;
    font-size: 13px;
}

.thinking-dots span {
    animation: thinking-dots 1s infinite alternate;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinking-dots {
    from { opacity: 0.2; }
    to { opacity: 1; }
}
