/**
 * 🔒 SUBSCRIPTION LOCKS - Estilos para Bloqueios Visuais
 * Sistema de restrições visuais baseado no plano do usuário
 */

/* ============================================
   CONTADOR DE BUSCAS
   ============================================ */
#searches-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.unlimited-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
    }
}

.searches-progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}

.searches-text {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 10px;
}

/* ============================================
   BADGE DO PLANO
   ============================================ */
#user-plan-badge {
    display: flex;
    align-items: center;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: badge-appear 0.3s ease;
}

@keyframes badge-appear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RECURSOS BLOQUEADOS
   ============================================ */
.locked-badge {
    animation: lock-pulse 2s infinite;
}

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

.locked-overlay {
    animation: overlay-appear 0.3s ease;
}

@keyframes overlay-appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.locked-message {
    text-align: center;
    color: white;
    padding: 30px;
    max-width: 400px;
}

.locked-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: lock-shake 0.5s ease;
}

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

.locked-message h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.locked-message p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.upgrade-btn-overlay {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.upgrade-btn-overlay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.6);
}

/* ============================================
   MODAL DE UPGRADE
   ============================================ */
.upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modal-appear 0.3s ease;
}

@keyframes modal-appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.upgrade-modal-content {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modal-slide 0.3s ease;
    color: white;
}

@keyframes modal-slide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.upgrade-icon {
    font-size: 80px;
    text-align: center;
    margin-bottom: 20px;
    animation: rocket-launch 1s ease infinite;
}

@keyframes rocket-launch {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.upgrade-modal-content h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upgrade-modal-content > p {
    text-align: center;
    font-size: 14px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.upgrade-benefits {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.upgrade-benefits h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fbbf24;
}

.upgrade-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upgrade-benefits li {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.upgrade-benefits li:last-child {
    border-bottom: none;
}

.upgrade-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-upgrade-now {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.btn-upgrade-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.6);
}

.btn-compare-plans {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-compare-plans:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.upgrade-footer {
    text-align: center;
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    #searches-counter {
        margin-right: 10px;
    }

    .searches-progress {
        min-width: 120px;
    }

    .upgrade-modal-content {
        padding: 30px 20px;
        max-width: 95%;
    }

    .upgrade-icon {
        font-size: 60px;
    }

    .upgrade-modal-content h2 {
        font-size: 22px;
    }
}

/* ============================================
   AJUSTES PARA TEMA ESCURO
   ============================================ */
body.dark-theme .searches-text {
    color: #d1d5db;
}

body.dark-theme .progress-bar {
    background: #374151;
}

body.dark-theme .locked-message {
    color: #f3f4f6;
}
