/* Busca Inteligente - Estilos */

.busca-inteligente-wrapper {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.busca-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 10px 15px;
}

.busca-input:focus {
    background: rgba(255, 255, 255, 0.15);
    ;
    border-color: var(--text-light);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
    color: var(--text-color);
}

.busca-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.suggestions-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestions-list {
    padding: 8px 0;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: rgba(233, 69, 96, 0.2);
}

.suggestion-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 69, 96, 0.2);
    border-radius: 50%;
    margin-right: 12px;
    font-size: 1.2rem;
    color: var(--text-light);
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-title mark {
    background: var(--text-light);
    color: #fff;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 700;
}

.suggestion-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    background: rgba(233, 69, 96, 0.2);
    color: var(--text-light);
    border-radius: 12px;
    margin-top: 4px;
}

.suggestion-arrow {
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

.suggestion-item:hover .suggestion-arrow,
.suggestion-item.selected .suggestion-arrow {
    color: var(--text-light);
    transform: translateX(5px);
    transition: all 0.2s ease;
}

/* Layout específico - Glass */
body.layout-glass .suggestions-dropdown {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.layout-glass .suggestion-item:hover,
body.layout-glass .suggestion-item.selected {
    background: rgba(255, 255, 255, 0.2);
}

/* Layout específico - Dark Pro */
body.layout-dark-pro .suggestions-dropdown {
    background: #181818;
    border: 1px solid #282828;
}

body.layout-dark-pro .suggestion-item:hover,
body.layout-dark-pro .suggestion-item.selected {
    background: #282828;
}

/* Layout específico - Classic Clean */
body.layout-classic-clean .suggestions-dropdown {
    background: #ffffff;
    border: 1px solid #e8eaed;
    box-shadow: 0 4px 12px rgba(60, 64, 67, 0.15);
}

body.layout-classic-clean .suggestion-item:hover,
body.layout-classic-clean .suggestion-item.selected {
    background: #f8f9fa;
}

body.layout-classic-clean .suggestion-title {
    color: #202124;
}

body.layout-classic-clean .suggestion-subtitle {
    color: #5f6368;
}

/* Mobile */
@media (max-width: 768px) {
    .busca-inteligente-wrapper {
        max-width: 100%;
        margin: 10px 0;
    }
    
    .suggestions-dropdown {
        max-height: 300px;
    }
}

