/* Demo Search Banner Styles */
.demo-search-banner {
    position: fixed;
    top: var(--navbar-height, 70px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 998;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.demo-search-banner.active {
    transform: translateY(0);
}

.demo-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.demo-search-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.demo-search-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.demo-search-input-container {
    flex: 1;
    position: relative;
}

.demo-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.demo-search-input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.demo-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.demo-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.5rem;
    display: none;
}

.demo-search-results.show {
    display: block;
}

.demo-search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s ease;
}

.demo-search-result-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.demo-search-result-item:last-child {
    border-bottom: none;
}

.demo-search-result-icon {
    color: #00d4ff;
    width: 20px;
    text-align: center;
}

.demo-search-result-content {
    flex: 1;
}

.demo-search-result-title {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.demo-search-result-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.demo-search-result-category {
    color: #7c3aed;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.demo-search-actions {
    display: flex;
    gap: 0.5rem;
}

.demo-search-help-btn,
.demo-search-close-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-search-help-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.demo-search-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .demo-search-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .demo-search-brand {
        font-size: 0.8rem;
    }
    
    .demo-search-input {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .demo-search-actions {
        gap: 0.25rem;
    }
    
    .demo-search-help-btn,
    .demo-search-close-btn {
        width: 35px;
        height: 35px;
    }
}

/* Animation d'entrée */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.demo-search-banner.entering {
    animation: slideDown 0.3s ease-out;
}
