/* 🔔 PULSAR PUSH NOTIFICATIONS UI STYLES v2.0 */

.notification-prompt {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(142, 45, 226, 0.1), rgba(255, 20, 147, 0.05));
    border: 2px solid rgba(142, 45, 226, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.notification-prompt:hover {
    border-color: rgba(142, 45, 226, 0.5);
    box-shadow: 0 8px 24px rgba(142, 45, 226, 0.2);
}

.notification-prompt.enabled {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 200, 0, 0.05));
    border-color: rgba(0, 255, 0, 0.3);
}

.notification-icon {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
}

.notification-text h4 {
    margin: 0 0 8px 0;
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 700;
}

.notification-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-enable-notifications {
    padding: 12px 28px;
    background: linear-gradient(135deg, #8E2DE2, #FF1493);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(142, 45, 226, 0.4);
}

.btn-enable-notifications:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(142, 45, 226, 0.6);
}

.btn-enable-notifications:active {
    transform: translateY(0);
}

.badge-active {
    padding: 8px 16px;
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid rgba(0, 255, 0, 0.5);
    border-radius: 20px;
    color: #00FF00;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Notificação In-App */
.pulsar-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(142, 45, 226, 0.5);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pulsar-notification.closing {
    animation: slideOut 0.4s ease-out forwards;
}

@keyframes slideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.notification-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(142, 45, 226, 0.5);
}

.notification-header-text {
    flex: 1;
}

.notification-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.notification-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.notification-body {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.notification-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.notification-actions {
    display: flex;
    gap: 12px;
}

.notification-actions button {
    flex: 1;
    padding: 10px;
    border: 2px solid rgba(142, 45, 226, 0.5);
    background: rgba(142, 45, 226, 0.2);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-actions button:hover {
    background: rgba(142, 45, 226, 0.4);
    border-color: rgba(142, 45, 226, 0.8);
}

.btn-close-notification {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close-notification:hover {
    background: rgba(255, 0, 0, 0.3);
    color: #FFFFFF;
}

/* Mobile */
@media (max-width: 768px) {
    .notification-prompt {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
    }
    
    .btn-enable-notifications {
        width: 100%;
    }
    
    .pulsar-notification {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

/* Animação de Badge */
.badge-active {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 255, 0, 0);
    }
}

/* Notificação de Contador */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #FF1493, #FF0000);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 20, 147, 0.6);
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
