/**
 * Estilos para Firebase Push Notifications
 */

/* Prompt de suscripción */
#fpn-subscription-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 350px;
    z-index: 999999;
    animation: fpn-slide-up 0.3s ease-out;
}

@keyframes fpn-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#fpn-subscription-prompt p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.fpn-prompt-buttons {
    display: flex;
    gap: 10px;
}

.fpn-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fpn-btn-primary {
    background: #2271b1;
    color: #fff;
}

.fpn-btn-primary:hover {
    background: #135e96;
}

.fpn-btn-secondary {
    background: #f0f0f1;
    color: #333;
}

.fpn-btn-secondary:hover {
    background: #dcdcde;
}

/* Notificación in-site */
.fpn-in-site-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    max-width: 350px;
    z-index: 999999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.fpn-in-site-notification.fpn-show {
    opacity: 1;
    transform: translateX(0);
}

.fpn-in-site-notification strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

.fpn-in-site-notification p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Botones de suscripción personalizables */
.fpn-subscribe-btn,
.fpn-unsubscribe-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fpn-subscribe-btn:hover,
.fpn-unsubscribe-btn:hover {
    background: #135e96;
    color: #fff;
}

.fpn-unsubscribe-btn {
    background: #d63638;
}

.fpn-unsubscribe-btn:hover {
    background: #b32d2e;
}

/* Responsivo */
@media (max-width: 480px) {
    #fpn-subscription-prompt,
    .fpn-in-site-notification {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 10px;
    }
    
    .fpn-in-site-notification {
        top: 10px;
        transform: translateY(-100px);
    }
    
    .fpn-in-site-notification.fpn-show {
        transform: translateY(0);
    }
    
    .fpn-prompt-buttons {
        flex-direction: column;
    }
}

/* Ícono de campana (opcional) */
.fpn-bell-icon {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
}

.fpn-bell-icon::before {
    content: "🔔";
    font-size: 20px;
}

.fpn-bell-icon.has-notification::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #d63638;
    border-radius: 50%;
    border: 2px solid #fff;
}
