/**
 * Estilos para Sistema de Busca AJAX - Força Aérea Brasileira
 */

/* Estilos para botão de busca com loading */
.btn-search-modern.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-search-modern.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estados de status nos resultados */
.status-ativo {
    color: #10B981;
    font-weight: bold;
}

.status-demitido {
    color: #EF4444;
    font-weight: bold;
}

.status-unknown {
    color: #6B7280;
    font-weight: bold;
}

/* Badge de patrocinador */
.badge-patrocinador {
    display: inline-block;
    background: linear-gradient(45deg, #D4AF37, #FFD700);
    color: #000;
    font-weight: bold;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Badge de advertência */
.badge-advertencia {
    display: inline-block;
    background: #dc3545;
    color: white;
    font-weight: bold;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 5px rgba(220, 53, 69, 0.5); }
    50% { box-shadow: 0 0 15px rgba(220, 53, 69, 0.8); }
    100% { box-shadow: 0 0 5px rgba(220, 53, 69, 0.5); }
}

/* Card com advertência */
.search-result-card.has-advertencia {
    border-left: 4px solid #dc3545;
}

/* Erro de busca */
.search-error {
    text-align: center;
    padding: 40px 20px;
    color: #EF4444;
}

.search-error i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.search-error p {
    font-size: 16px;
    font-weight: 500;
}

/* Melhorias nos resultados */
.search-result-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Estado vazio melhorado */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9CA3AF;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    font-weight: 500;
}

/* Responsividade para mobile */
@media (max-width: 992px) {
    .search-result-card {
        gap: 15px;
    }
    
    .result-title {
        font-size: 18px;
    }
    
    .result-detail-line {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .search-result-card {
        flex-direction: column;
    }
    
    .result-left-section {
        flex-direction: row;
        align-items: center;
        margin-bottom: 16px;
    }
    
    .result-right-section {
        margin-left: 0;
        margin-top: 16px;
    }
    
    .btn-view-profile-result {
        margin-left: auto;
        margin-right: 0;
    }
    
    .result-avatar img {
        width: 70px;
        height: 70px;
    }
    
    .result-title {
        font-size: 16px;
    }
    
    .result-name {
        font-size: 15px;
    }
    
    .result-id {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .search-error {
        padding: 30px 15px;
    }
    
    .search-error i {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .search-error p {
        font-size: 14px;
    }
    
    .empty-state {
        padding: 50px 15px;
    }
    
    .empty-state i {
        font-size: 56px;
        margin-bottom: 16px;
    }
    
    .empty-state p {
        font-size: 16px;
    }
    
    .search-result-card {
        gap: 12px;
        padding: 18px;
    }
    
    .result-left-section {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .result-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .result-basic-info {
        text-align: center;
    }
    
    .result-title {
        font-size: 15px;
        text-align: left;
    }
    
    .result-detail-line {
        font-size: 12px;
        text-align: left;
    }
    
    .result-name {
        font-size: 14px;
    }
    
    .result-id {
        font-size: 10px;
    }
    
    .badge-patrocinador {
        font-size: 8px;
        padding: 2px 5px;
    }
    
    .btn-view-profile-result {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 11px;
    }
}

/* Animações suaves */
.search-results-container {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Melhorias no input de busca */
.input-modern-wrapper input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Loading spinner personalizado */
.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Melhorias nos botões */
.btn-view-profile-result {
    transition: all 0.3s ease;
}

.btn-view-profile-result:hover {
    background-color: #D4AF37;
    color: #000;
    transform: translateY(-1px);
}

/* Estados de hover para cards */
.search-result-card:hover .result-avatar img {
    transform: scale(1.05);
}

.result-avatar img {
    transition: transform 0.3s ease;
}
