/* Semantic Search AI Mode Styles - Premium Revamp */

.ai-mode-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    margin: 0 10px;
    border-left: 1px solid #e2e5ec;
    cursor: help;
}

.ai-toggle-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ai-toggle-desc {
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.2;
    max-width: 120px;
    margin-left: 8px;
    display: none;
}

@media (min-width: 992px) {
    .ai-toggle-desc {
        display: block;
    }
}

.ai-toggle-btn {
    position: relative;
    width: 38px;
    height: 20px;
    background: #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-toggle-btn::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-toggle-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.ai-toggle-btn.active + .ai-toggle-label {
    color: #6366f1;
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
}

.ai-toggle-btn.active::before {
    left: 21px;
}

/* Premium Search Bar State */
.search-input-box.ai-active {
    position: relative;
    border-radius: 8px;
}

.search-input-box.ai-active::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(95deg, #6366f1, #a855f7, #ec4899);
    z-index: -1;
    border-radius: inherit;
    opacity: 0.6;
    filter: blur(8px);
    animation: border-glow 4s linear infinite;
}

@keyframes border-glow {
    0%, 100% { opacity: 0.4; filter: blur(6px); }
    50% { opacity: 0.8; filter: blur(10px); }
}

.search-input-ai-active {
    background: white !important;
    border: 2px solid #6366f1 !important;
    font-style: italic;
    color: #1e293b !important;
}

/* Glassmorphism Match Badge */
.ai-match-badge {
    position: absolute;
    z-index: 20;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px !important;
    padding: 4px 12px !important;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-match-badge i {
    font-size: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-match-high {
    border-color: rgba(99, 102, 241, 0.5) !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

.ai-match-high span {
    color: #4338ca !important;
    font-weight: 800 !important;
}

.ai-match-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

@keyframes ai-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

.ai-active-placeholder {
    animation: ai-pulse 2s infinite ease-in-out;
}
