/* ==============================================
   Selo de Verificação de Imóveis - NGA
   Versão: 2.0 - Versão Aprimorada
   ============================================== */

:root {
    --verified-primary: #00C896;       /* Verde principal */
    --verified-secondary: #00A678;     /* Verde escuro */
    --verified-accent: #4ECB71;        /* Verde claro */
    --verified-gold: #FFD700;          /* Dourado */
    --verified-gold-dark: #FFA500;     /* Dourado escuro */
    --verified-blue: #1E88E5;          /* Azul confiança */
    --verified-glow: rgba(0, 200, 150, 0.3); /* Glow effect */
}

/* ========== 1. BADGE PRINCIPAL NA BARRA DE INFORMAÇÕES ========== */

/* Badge original aprimorado */
.verified-badge {
    background: linear-gradient(135deg, var(--verified-primary) 0%, var(--verified-secondary) 100%);
    color: white !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 200, 150, 0.3);
    animation: subtlePulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.verified-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shineEffect 3s ease-in-out infinite;
}

.verified-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 200, 150, 0.4);
}

.verified-badge i {
    font-size: 14px;
    animation: checkRotate 5s ease-in-out infinite;
}

/* ========== 2. SELO DE DESTAQUE PREMIUM ========== */

/* Container do selo premium - para adicionar após o título */
.verified-seal-container {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #e6f7ff 100%);
    border-radius: 16px;
    border: 2px solid var(--verified-primary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 200, 150, 0.15);
}

.verified-seal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--verified-primary) 0%, 
        var(--verified-accent) 50%, 
        var(--verified-primary) 100%);
    animation: gradientMove 3s linear infinite;
}

/* Selo circular premium */
.verified-seal {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.verified-seal-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--verified-gold) 0%, var(--verified-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 4px white,
        0 0 0 6px var(--verified-primary),
        0 4px 20px rgba(255, 215, 0, 0.5);
    position: relative;
    animation: sealFloat 4s ease-in-out infinite;
}

.verified-seal-icon {
    font-size: 36px;
    color: white;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Estrelas decorativas ao redor do selo */
.verified-seal-stars {
    position: absolute;
    width: 64px;
    height: 64px;
    animation: starsRotate 20s linear infinite;
}

.verified-star {
    position: absolute;
    color: var(--verified-gold);
    font-size: 12px;
}

.verified-star:nth-child(1) { top: -8px; left: 50%; transform: translateX(-50%); }
.verified-star:nth-child(2) { top: 15px; right: -8px; }
.verified-star:nth-child(3) { bottom: 15px; right: -8px; }
.verified-star:nth-child(4) { bottom: -8px; left: 50%; transform: translateX(-50%); }
.verified-star:nth-child(5) { bottom: 15px; left: -8px; }
.verified-star:nth-child(6) { top: 15px; left: -8px; }

/* Conteúdo do selo */
.verified-seal-content {
    flex: 1;
}

.verified-seal-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--verified-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.verified-seal-badge {
    background: var(--verified-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
}

.verified-seal-description {
    color: #4a5568;
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.verified-seal-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.verified-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    font-size: 14px;
    font-weight: 500;
}

.verified-feature i {
    color: var(--verified-accent);
    font-size: 10px;
}

/* ========== 3. HIGHLIGHT BOX APRIMORADO ========== */

.property-highlights .highlight-item.verified-highlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #e6f7ff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--verified-primary);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 200, 150, 0.15);
    animation: highlightEntrance 0.6s ease-out;
}

.verified-highlight::after {
    content: '✓';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 100px;
    color: rgba(0, 200, 150, 0.08);
    font-weight: bold;
    transform: rotate(15deg);
}

.verified-highlight .highlight-icon {
    background: var(--verified-primary);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 200, 150, 0.3);
    animation: iconBounce 5s ease-in-out infinite;
}

.verified-highlight .highlight-icon i {
    font-size: 24px;
    color: white;
}

.verified-highlight .highlight-content h4 {
    color: var(--verified-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.verified-highlight .highlight-content p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
}

/* Lista de garantias */
.verified-guarantees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 200, 150, 0.2);
}

.verified-guarantee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    font-size: 14px;
}

.verified-guarantee-item i {
    color: var(--verified-accent);
    font-size: 14px;
}

/* ========== 4. SELO NA GALERIA DE FOTOS ========== */
/*
.photo-gallery-grid::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    width: 100px;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='48' fill='%2300C896' opacity='0.95'/%3E%3Cpath d='M35 50 L45 60 L65 40' stroke='white' stroke-width='5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ctext x='50' y='80' text-anchor='middle' fill='white' font-size='10' font-weight='bold'%3EVERIFICADO%3C/text%3E%3C/svg%3E");
    background-size: contain;
    z-index: 10;
    animation: sealEntrance 0.8s ease-out;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
*/
/* ========== 5. INDICADOR FLUTUANTE ========== */

.verified-floating-indicator {
    position: fixed;
    bottom: 100px;
    right: 40px;
    background: white;
    border-radius: 60px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    transform: translateX(400px);
    animation: slideInFloating 0.8s ease-out 1s forwards;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--verified-primary);
}

.verified-floating-indicator:hover {
    transform: translateX(0) scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 200, 150, 0.3);
}

.verified-floating-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--verified-primary) 0%, var(--verified-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.verified-floating-text {
    display: flex;
    flex-direction: column;
}

.verified-floating-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--verified-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verified-floating-subtitle {
    font-size: 12px;
    color: #718096;
}

/* ========== 6. MODAL DE VERIFICAÇÃO ========== */

.verified-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

.verified-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.4s ease-out;
}

.verified-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.verified-modal-seal {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--verified-gold) 0%, var(--verified-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 6px white,
        0 0 0 8px var(--verified-primary),
        0 6px 30px rgba(255, 215, 0, 0.5);
    animation: sealFloat 4s ease-in-out infinite;
}

.verified-modal-seal i {
    font-size: 60px;
    color: white;
}

.verified-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--verified-primary);
    margin-bottom: 10px;
}

.verified-modal-subtitle {
    font-size: 16px;
    color: #718096;
}

.verified-modal-body {
    margin-bottom: 30px;
}

.verified-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.verified-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f7fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.verified-checklist li:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.verified-checklist i {
    color: var(--verified-accent);
    font-size: 20px;
    margin-top: 2px;
}

.verified-checklist-content {
    flex: 1;
}

.verified-checklist-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.verified-checklist-desc {
    font-size: 14px;
    color: #718096;
    line-height: 1.4;
}

.verified-modal-footer {
    text-align: center;
}

.verified-modal-close {
    background: var(--nga-primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verified-modal-close:hover {
    color: var(--nga-secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 150, 0.3);
}

/* ========== 7. ANIMAÇÕES ========== */

@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(0, 200, 150, 0.3); }
    50% { box-shadow: 0 2px 16px rgba(0, 200, 150, 0.5); }
}

@keyframes shineEffect {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes checkRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes sealFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes starsRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    75% { transform: translateY(3px); }
}

@keyframes sealEntrance {
    from { 
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes slideInFloating {
    to { transform: translateX(0); }
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        transform: translate(-50%, -45%);
        opacity: 0;
    }
    to { 
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* ========== 8. RESPONSIVIDADE ========== */

/* Adicionar estilos responsíveis para badges de usuário */

/* Ajustes para dispositivos móveis */
@media (max-width: 576px) {
    .verified-user-avatar-badge {
        width: 14px;
        height: 14px;
        font-size: 8px;
        border-width: 1.5px;
    }
    
    .navbar .user-avatar-wrapper .verified-user-avatar-badge {
        width: 12px;
        height: 12px;
        font-size: 7px;
    }
}

@media (max-width: 768px) {
    .verified-seal-container {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .verified-seal {
        margin: 0 auto;
    }
    
    .verified-seal-features {
        justify-content: center;
    }
    
    .verified-floating-indicator {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
    }
    
    .verified-floating-subtitle {
        display: none;
    }
    
    .photo-gallery-grid::after {
        width: 70px;
        height: 70px;
        top: 10px;
        left: 10px;
    }
    
    .verified-modal-content {
        padding: 24px;
        width: 95%;
    }
    
    .verified-modal-seal {
        width: 80px;
        height: 80px;
    }
    
    .verified-modal-seal i {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .verified-seal-container {
        margin: 16px -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .verified-floating-indicator {
        transform: translateX(0) !important;
        animation: none;
        position: static;
        margin: 20px auto;
        width: fit-content;
    }
}

/* ========== 9. MODO ESCURO (OPCIONAL) ========== */

@media (prefers-color-scheme: dark) {
    .verified-seal-container {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(30, 136, 229, 0.1) 100%);
        border-color: var(--verified-accent);
    }
    
    .verified-highlight {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(30, 136, 229, 0.15) 100%);
    }
    
    .verified-modal-content {
        background: #1a202c;
        color: #e2e8f0;
    }
    
    .verified-checklist li {
        background: #2d3748;
    }
    
    .verified-checklist-title {
        color: #e2e8f0;
    }
    
    .verified-checklist-desc {
        color: #a0aec0;
    }
}

/* ========== 10. BADGES DE USUÁRIO VERIFICADO ========== */

/* Badge de Usuário Verificado */
.verified-user-badge {
    background: linear-gradient(135deg, var(--verified-blue) 0%, #1565C0 100%) !important;
    color: white !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3);
    animation: userBadgePulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.verified-user-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shineEffect 3s ease-in-out infinite;
}

.verified-user-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.4);
    background: linear-gradient(135deg, #1565C0 0%, var(--verified-blue) 100%);
}

.verified-user-badge i {
    font-size: 14px;
}

/* Ícone compacto de usuário verificado */
.verified-user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--verified-blue);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(30, 136, 229, 0.3);
    transition: all 0.3s ease;
}

.verified-user-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(30, 136, 229, 0.5);
}

/* Badge de usuário verificado para avatars */
.user-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.user-avatar-wrapper .verified-user-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid white;
    width: 20px;
    height: 20px;
    font-size: 10px;
}

/* Badge flutuante para avatares (estilo mais sutil) */
.verified-user-avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: var(--verified-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.verified-user-avatar-badge:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(30, 136, 229, 0.5);
}

/* Tamanhos ajustáveis para diferentes contextos */
.user-avatar-wrapper.small .verified-user-avatar-badge {
    width: 14px;
    height: 14px;
    font-size: 8px;
    border-width: 1.5px;
}

.user-avatar-wrapper.large .verified-user-avatar-badge {
    width: 24px;
    height: 24px;
    font-size: 14px;
    border-width: 3px;
}

/* Para headers/navbars */
.navbar .user-avatar-wrapper .verified-user-avatar-badge {
    width: 16px;
    height: 16px;
    font-size: 9px;
    bottom: -2px;
    right: -2px;
}

/* Animação de entrada */
.verified-user-avatar-badge {
    animation: badgePopIn 0.3s ease-out;
}

@keyframes badgePopIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal de Usuário Verificado */
.verified-user-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

.verified-user-modal .verified-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.4s ease-out;
}

/* Selo de usuário no modal */
.verified-modal-seal.user-seal {
    background: linear-gradient(135deg, var(--verified-blue) 0%, #1565C0 100%);
    box-shadow: 
        0 0 0 6px white,
        0 0 0 8px var(--verified-blue),
        0 6px 30px rgba(30, 136, 229, 0.5);
}

/* Animações específicas para usuário */
@keyframes userBadgePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3); }
    50% { box-shadow: 0 2px 16px rgba(30, 136, 229, 0.5); }
}

/* Diferenças visuais entre badges */
.verified-badge {
    /* Imóvel verificado - Verde */
    background: linear-gradient(135deg, var(--verified-primary) 0%, var(--verified-secondary) 100%);
}

.verified-user-badge {
    /* Usuário verificado - Azul */
    background: linear-gradient(135deg, var(--verified-blue) 0%, #1565C0 100%);
}

/* Badge combinada para usuários com imóveis verificados */
.verified-combo-badge {
    background: linear-gradient(135deg, var(--verified-primary) 0%, var(--verified-blue) 100%);
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.verified-combo-badge .badge-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 4px;
}

/* ========== 11. CLASSES UTILITÁRIAS ========== */

.verified-shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.verified-glow {
    box-shadow: 0 0 20px var(--verified-glow);
}

.verified-text-gradient {
    background: linear-gradient(135deg, var(--verified-primary) 0%, var(--verified-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tooltip para informações adicionais */
.verified-tooltip {
    position: relative;
}

.verified-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.verified-tooltip::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2d3748;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.verified-tooltip:hover::after,
.verified-tooltip:hover::before {
    opacity: 1;
}
